OpenSearch/x-pack/plugin
Benjamin Trent af0b1c2860
[ML] Fix minor race condition in dataframe analytics _stop (#53029) (#53164)
Tests have been periodically failing due to a race condition on checking a recently `STOPPED` task's state. The `.ml-state` index is not created until the task has already been transitioned to `STARTED`. This allows the `_start` API call to return. But, if a user (or test) immediately attempts to `_stop` that job, the job could stop and the task removed BEFORE the `.ml-state|stats` indices are created/updated.

This change moves towards the task cleaning up itself in its main execution thread. `stop` flips the flag of the task to `isStopping` and now we check `isStopping` at every necessary method. Allowing the task to gracefully stop.

closes #53007
2020-03-05 09:59:18 -05:00
..
analytics Support multiple metrics in `top_metrics` agg (backport of #52965) (#53163) 2020-03-05 08:12:01 -05:00
autoscaling [7.x] Smarter copying of the rest specs and tests (#52114) (#52798) 2020-02-26 08:13:41 -06:00
ccr Allow dynamic updates for index.hidden setting (#52837) 2020-02-26 11:46:29 -07:00
core Formalize usage stats for analytics (backport of #52966) (#53077) 2020-03-04 10:29:11 -05:00
deprecation Remove DeprecationLogger from route objects (#52285) 2020-02-12 15:05:41 -07:00
enrich Introduce system index APIs for Kibana (#53035) 2020-03-03 14:11:36 -07:00
eql EQL: Add HLRC for EQL stats (#53043) (#53148) 2020-03-05 09:20:38 -05:00
frozen-indices Upgrade Lucene to 8.5.0-snapshot-b01d7cb (#52584) 2020-02-21 10:25:03 +00:00
graph [7.x] Smarter copying of the rest specs and tests (#52114) (#52798) 2020-02-26 08:13:41 -06:00
ilm [7.x] Smarter copying of the rest specs and tests (#52114) (#52798) 2020-02-26 08:13:41 -06:00
logstash Introduce system index APIs for Kibana (#53035) 2020-03-03 14:11:36 -07:00
mapper-constant-keyword Introduce a `constant_keyword` field. (#49713) (#53024) 2020-03-03 16:01:47 +01:00
mapper-flattened Add size support to `top_metrics` (backport of #52662) (#52914) 2020-02-27 16:12:52 -05:00
ml [ML] Fix minor race condition in dataframe analytics _stop (#53029) (#53164) 2020-03-05 09:59:18 -05:00
monitoring Single instance of the IndexNameExpressionResolver (#52604) 2020-02-21 07:50:02 -07:00
ql SQL: Fix column size for IP data type (#53056) 2020-03-04 10:36:44 +01:00
rollup Single instance of the IndexNameExpressionResolver (#52604) 2020-02-21 07:50:02 -07:00
search-business-rules Generalize how queries on `_index` are handled at rewrite time (#52815) 2020-02-26 15:37:43 +01:00
security Introduce system index APIs for Kibana (#53035) 2020-03-03 14:11:36 -07:00
spatial Add support for multipoint shape queries (#52564) (#52705) 2020-02-24 13:46:51 +01:00
sql upgrade to lucene-snapshot-fa75139efea (#53150) (#53151) 2020-03-05 10:04:05 +01:00
src/test Fix test failures with the new `constant_keyword` field. (#53153) 2020-03-05 14:29:13 +01:00
transform Introduce system index APIs for Kibana (#53035) 2020-03-03 14:11:36 -07:00
vectors Add size support to `top_metrics` (backport of #52662) (#52914) 2020-02-27 16:12:52 -05:00
voting-only-node Single instance of the IndexNameExpressionResolver (#52604) 2020-02-21 07:50:02 -07:00
watcher Use correct issue number: #52453 2020-03-04 16:17:55 +01:00
build.gradle Disable ILM history in x-pack rest tests (#52868) 2020-02-27 17:20:33 +01:00