Zachary Tong
04445ce95f
Throw 400 on unknown metrics in Job Stats ( elastic/elasticsearch#446 )
...
Closes elastic/elasticsearch#426
Original commit: elastic/x-pack-elasticsearch@86f136f5c0
2016-12-02 08:26:32 -05:00
Zachary Tong
b6bdef474d
Throw 403 instead of 429 when max job capacity full ( elastic/elasticsearch#445 )
...
Closes elastic/elasticsearch#444
Original commit: elastic/x-pack-elasticsearch@dfaf8dbec4
2016-12-02 08:26:19 -05:00
Colin Goodheart-Smithe
41bd367071
cenrealise group across all projects
...
Original commit: elastic/x-pack-elasticsearch@8a62d12149
2016-12-02 13:12:57 +00:00
Colin Goodheart-Smithe
ea1c8b5ddd
centralise detection of operating system
...
Original commit: elastic/x-pack-elasticsearch@0ba41dde0d
2016-12-02 12:18:51 +00:00
Colin Goodheart-Smithe
00dc347217
Build now downloads c++ dist for all platforms
...
Original commit: elastic/x-pack-elasticsearch@8fd9850377
2016-12-02 09:46:05 +00:00
Martijn van Groningen
1e5a12fc6a
Move post data api over to task api.
...
Also made post data api cancellable.
Original commit: elastic/x-pack-elasticsearch@55360609de
2016-12-01 18:49:06 +01:00
Colin Goodheart-Smithe
a82dc82439
remove debug code in build
...
Original commit: elastic/x-pack-elasticsearch@590a605c8a
2016-12-01 16:35:16 +00:00
Colin Goodheart-Smithe
8dc12d0f88
Gets ES plugin to download the cpp code if not built locally
...
Original commit: elastic/x-pack-elasticsearch@64cc4aeb38
2016-12-01 16:33:28 +00:00
Colin Goodheart-Smithe
19c1424984
fix build to not require AWS credentials
...
Original commit: elastic/x-pack-elasticsearch@74c7fb5c0f
2016-12-01 16:18:29 +00:00
David Roberts
14208f12d1
Change the way 3rd party licenses are distributed for the C++ components ( elastic/elasticsearch#366 )
...
Note: there is no need to offer the Eigen source code now we use it unmodified
Original commit: elastic/x-pack-elasticsearch@b971c31a20
2016-12-01 15:16:57 +00:00
Colin Goodheart-Smithe
bfb72d0a96
Adds task to upload cpp distribution zip
...
Original commit: elastic/x-pack-elasticsearch@c4fee26b37
2016-12-01 14:19:00 +00:00
Martijn van Groningen
6fee7a21b5
applied feedback
...
Original commit: elastic/x-pack-elasticsearch@579fd037a4
2016-12-01 15:02:19 +01:00
Martijn van Groningen
c387a3636d
Make auditor index messages asyn in the background, the auditor will not let the calling thread wait.
...
Also collapsed the the interface into the only implementation.
Original commit: elastic/x-pack-elasticsearch@c68f77627e
2016-12-01 15:02:19 +01:00
Colin Goodheart-Smithe
e5e039973e
Changes build to only grab cpp zip if it was built
...
Original commit: elastic/x-pack-elasticsearch@24fc48fe86
2016-12-01 12:16:47 +00:00
David Kyle
53adc100ad
Refactor deleting old results ( elastic/elasticsearch#431 )
...
* Refactor deleting old results
* Reinstate quiet logging when deleting interim results
Original commit: elastic/x-pack-elasticsearch@01ea95469c
2016-12-01 10:32:41 +00:00
David Kyle
2fdf848df5
Add jobid to job response ( elastic/elasticsearch#434 )
...
* Add jobId to job info responses
* Remove getJobId() accessor from job - use getId()
Original commit: elastic/x-pack-elasticsearch@faacef1217
2016-12-01 10:30:37 +00:00
Colin Goodheart-Smithe
f0a968292a
Makes elasticsearch plugin generation depend on cpp ( elastic/elasticsearch#433 )
...
The changes the way the Elasticsearch plugin module gets the cpp code when running the bundlePlugin task. Instead of manually going into the cpp builds output and grabbing the folders it depends on the buildZip task of the :cpp project and grabs the resource that task builds. This means that it does not matter if the cpp buildZip task is changed as long as it results in a zip being generated.
Original commit: elastic/x-pack-elasticsearch@257e5df2e7
2016-12-01 09:49:03 +00:00
Zachary Tong
ee54258908
Convert RevertModel response from SingleDoc to simple, inlined model ( elastic/elasticsearch#423 )
...
Convert response from SingleDoc to simple, inlined model
Original commit: elastic/x-pack-elasticsearch@6231195b47
2016-11-30 09:52:06 -05:00
Zachary Tong
7c9f65231a
Convert PutModelDescription response from SingleDoc to simple, inlined model ( elastic/elasticsearch#424 )
...
Original commit: elastic/x-pack-elasticsearch@1d28285e77
2016-11-30 09:48:49 -05:00
Dimitrios Athanasiou
211d787f33
Remove mappings for influencer fields that overlap with bucket or record
...
Original commit: elastic/x-pack-elasticsearch@36acf9f31b
2016-11-30 14:00:42 +00:00
Dimitrios Athanasiou
9dda1ee21a
Remove redundant repetition of partition scores in mappings
...
Original commit: elastic/x-pack-elasticsearch@4194a16529
2016-11-30 14:00:42 +00:00
Dimitrios Athanasiou
75c36207b4
Also rename epochStart/epochEnd to start/end in BucketsQueryBuilder
...
Original commit: elastic/x-pack-elasticsearch@e2eaca7ba5
2016-11-30 14:00:42 +00:00
Dimitrios Athanasiou
d0c0e6904e
Move RestGetInfluencersAction under results package
...
Original commit: elastic/x-pack-elasticsearch@281d432732
2016-11-30 14:00:42 +00:00
Dimitrios Athanasiou
ec5aa34d17
Rename epochStart/epochEnd to start/end in result query builders
...
Original commit: elastic/x-pack-elasticsearch@f4fdd64278
2016-11-30 14:00:42 +00:00
Dimitrios Athanasiou
2898e3c421
Make start and end optional params in results endpoints
...
Original commit: elastic/x-pack-elasticsearch@0ab5da04f9
2016-11-30 14:00:42 +00:00
Dimitrios Athanasiou
9d2ce12624
Set type to influencer while getting influencers
...
Original commit: elastic/x-pack-elasticsearch@c65365e3ee
2016-11-30 14:00:42 +00:00
Dimitrios Athanasiou
5455b5bbad
Fix result mappings
...
Original commit: elastic/x-pack-elasticsearch@e63209af98
2016-11-30 14:00:42 +00:00
David Kyle
1c98d59db0
Bug 401 Fix NPE when POSTing empty JSON object to /jobs ( elastic/elasticsearch#420 )
...
Original commit: elastic/x-pack-elasticsearch@fa6db52c8c
2016-11-30 10:19:03 +00:00
Martijn van Groningen
fd743cbfc6
Simplify flush listener by using computeIfAbsent(...)
...
Make sure CountDownLatch gets removed when it is no longer needed
Also add CountDownLatch is it is missing when we ack a flush id,
we may ack before we wait for it
Original commit: elastic/x-pack-elasticsearch@83a993b9ad
2016-11-30 10:04:42 +01:00
Zachary Tong
7f6907da8b
Convert GetList from SingleDocument to QueryPage ( elastic/elasticsearch#408 )
...
Related to elastic/elasticsearch#314
Original commit: elastic/x-pack-elasticsearch@40702a3d5b
2016-11-29 13:22:54 -05:00
Martijn van Groningen
fb2bd73bc1
Let close autodetect wait for other operations to complete.
...
Original commit: elastic/x-pack-elasticsearch@de517f4fba
2016-11-29 18:05:56 +01:00
David Kyle
f88216eaa5
Persist DataCounts every 10 seconds from a thread pool scheduled task. ( elastic/elasticsearch#388 )
...
* Persist DataCounts every 10 seconds from a thread pool scheduled task.
Also rework the isReportingBoundary function changing the function as the boundary changes
* Remove overloaded constructors from StatusReporter and DummyStatusReporter
* Persist dataCounts in a background thread from the status reporter
* Use generic threadpool
Original commit: elastic/x-pack-elasticsearch@f00c1067aa
2016-11-29 16:37:47 +00:00
David Kyle
688b5cc202
Renamed REST path parameters to snake case. ( elastic/elasticsearch#367 )
...
* Renamed REST path parameters to snake case.
And added missing parameter descriptions
* Document endpoint which accept body parameters
* Endpoints that support body parameters must also accept POST
Original commit: elastic/x-pack-elasticsearch@2cad2e8af6
2016-11-29 16:04:08 +00:00
David Roberts
c99ee42f0e
Fix a stream parsing edge case ( elastic/elasticsearch#413 )
...
BytesReference doesn't like size 0 slices
Original commit: elastic/x-pack-elasticsearch@20ef0d2c1f
2016-11-29 13:52:34 +00:00
David Kyle
5d2cc13797
Fix long lines failing check and parsing tests ( elastic/elasticsearch#415 )
...
Original commit: elastic/x-pack-elasticsearch@0711a9c919
2016-11-29 13:50:56 +00:00
David Roberts
62a0f64012
Fix Windows named pipes with Java security manager ( elastic/elasticsearch#410 )
...
The problem is that the Java security manager can open the pipe and then
quickly close it, leading to a need to reconnect from the C++ side.
Original commit: elastic/x-pack-elasticsearch@772b57f443
2016-11-29 12:38:06 +00:00
David Kyle
576a591d3b
Make the per partition max anomaly scores a result type ( elastic/elasticsearch#411 )
...
Original commit: elastic/x-pack-elasticsearch@002a1d7623
2016-11-29 11:52:37 +00:00
Martijn van Groningen
78cd60048c
log ResourceAlreadyExistsException differently,
...
it can happen we encounter more then one cluster states with no usage index and causing this class to send two or more create index requests, but only one request will succeed.
Original commit: elastic/x-pack-elasticsearch@524a1dda61
2016-11-29 10:21:04 +01:00
Martijn van Groningen
0cba57194c
test: also wait for paused state
...
Original commit: elastic/x-pack-elasticsearch@8ffec23a21
2016-11-28 22:43:54 +01:00
Zachary Tong
2b2307a82b
Use jobId_timestamp_bucketSpan as ID for bucket ( elastic/elasticsearch#375 )
...
Removes the reliance on ES autogenerated UUIDs and instead uses `{jobId}_{timestamp}_{bucketSpan}`
Original commit: elastic/x-pack-elasticsearch@3cd774edd8
2016-11-28 13:59:47 -05:00
Martijn van Groningen
b526d7920d
change test to wait allocation has been added (which is added in the background)
...
Original commit: elastic/x-pack-elasticsearch@6b60d37fb5
2016-11-28 18:13:31 +01:00
Martijn van Groningen
2cbc415f38
mute test
...
Original commit: elastic/x-pack-elasticsearch@adc69f682e
2016-11-28 18:00:05 +01:00
Martijn van Groningen
ee132337b5
Update the job status only once when closing (or pausing) the analytical process.
...
Also changed the the post data api to change the job status to running when the analytical process is started.
Closes elastic/elasticsearch#319
Original commit: elastic/x-pack-elasticsearch@b38d52d849
2016-11-28 16:43:21 +01:00
Martijn van Groningen
2e78706a3f
Create usage index upon startup.
...
Also moved all creation logic that is required to run at cluster startup into PrelertInitializationService.
Original commit: elastic/x-pack-elasticsearch@453ba3efa3
2016-11-28 15:02:30 +01:00
David Kyle
3362d5c965
Remove average processing time mapping ( elastic/elasticsearch#402 )
...
Original commit: elastic/x-pack-elasticsearch@97fdeaf748
2016-11-28 12:48:14 +00:00
David Kyle
39fe1b7b09
Remove System.out.println call from test.
...
Fails the gradle check task
Original commit: elastic/x-pack-elasticsearch@daace999a7
2016-11-28 11:08:28 +00:00
David Kyle
02a94ce729
Detype Results ( elastic/elasticsearch#384 )
...
* Add result_type field to bucket
* Query and delete buckets/records by result_type
* Add a filter to the ElasticsearchBatchedDocumentsIterator subclasses for result_type:bucket
* De-type Influencers, BucketInfluencers and Category Definitions
* Revert de-typing CategoryDefinition
* Resolve merge errors after rebase
Original commit: elastic/x-pack-elasticsearch@65605432e8
2016-11-28 10:47:17 +00:00
Dimitris Athanasiou
37cd03ad4d
Split records and influencers from bucket ( elastic/elasticsearch#389 )
...
In c++ the results are built all together under a bucket hierarchy.
This buckets was written out and java would read it and split the
bucket into its parts: the bucket itself, its records and its
influencers.
During the migration, the bucket started being persisted as a whole,
including its records and influencers.
This commit is changing this by modifying the way results are written
in c++. This way, the java and c++ results writing/reading are in sync.
To achieve this, the change involved writing records and influencers as
top level results from c++. In addition, they are written as an array
object in order to allow the java side to persist them in a bulk
request.
* Fix bucket counting in results processor
Original commit: elastic/x-pack-elasticsearch@feadf3f887
2016-11-25 17:54:24 +00:00
David Roberts
9286ef2304
Add a missing field to the mappings for modelSnapshot documents ( elastic/elasticsearch#396 )
...
This fixes one of the problems of elastic/elasticsearch#394
Original commit: elastic/x-pack-elasticsearch@ea627767d2
2016-11-25 17:19:37 +00:00
David Roberts
16b91c9d0f
Add job ID to NativeAutodetectProcess log messages ( elastic/elasticsearch#392 )
...
Original commit: elastic/x-pack-elasticsearch@5d3b03910e
2016-11-25 16:34:57 +00:00