OpenSearch/x-pack/plugin/ml/qa
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
..
basic-multi-node [ML] Make ml internal indices hidden (#52423) (#52509) 2020-02-19 14:02:32 +01:00
disabled Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
ml-with-security [7.x] Refactor watcher tests (#52799) (#52844) 2020-02-26 15:57:10 -06:00
native-multi-node-tests [ML] Fix minor race condition in dataframe analytics _stop (#53029) (#53164) 2020-03-05 09:59:18 -05:00
no-bootstrap-tests Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
single-node-tests Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
build.gradle [7.x] Smarter copying of the rest specs and tests (#52114) (#52798) 2020-02-26 08:13:41 -06:00