OpenSearch/plugin
Dimitris Athanasiou 27a313c07d [ML] Correctly initialise model size stats on job reopen (elastic/x-pack-elasticsearch#822)
This commit ensures that upon reopening a job, the in-memory
model size stats are correctly initialized from the ones
last persisted in the results index.

This fixes the bug that could be seen upon opening a job
that has processed data and immediately calling its _stats
API only to see the model size stats are zero.

In addition, this PR refactors getting the parameters needed to
open an autodetect job:

- Previously, there was a method chaining together multiple
callbacks to the job provider.
- These methods were retrieving data via GETs which is not
going to work with index rollover.

Note, this PR is not eliminating all GETs. More work is needed
to fully support index rollover.

relates elastic/x-pack-elasticsearch#801

Original commit: elastic/x-pack-elasticsearch@1ef1d44b32
2017-03-27 13:17:44 +01:00
..
bin/x-pack Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
config/x-pack Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
keys Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
licenses Watcher: Update dependencies (elastic/x-pack-elasticsearch#613) 2017-03-21 10:28:20 +01:00
src [ML] Correctly initialise model size stats on job reopen (elastic/x-pack-elasticsearch#822) 2017-03-27 13:17:44 +01:00
build.gradle Watcher: Update dependencies (elastic/x-pack-elasticsearch#613) 2017-03-21 10:28:20 +01:00