OpenSearch/x-pack/plugin
David Roberts bbcdea43c5 [ML] Allow stop unassigned datafeed and relax unset upgrade mode wait (#39034)
These two changes are interlinked.

Before this change unsetting ML upgrade mode would wait for all
datafeeds to be assigned and not waiting for their corresponding
jobs to initialise.  However, this could be inappropriate, if
there was a reason other that upgrade mode why one job was unable
to be assigned or slow to start up.  Unsetting of upgrade mode
would hang in this case.

This change relaxes the condition for considering upgrade mode to
be unset to simply that an assignment attempt has been made for
each ML persistent task that did not fail because upgrade mode
was enabled.  Thus after unsetting upgrade mode there is no
guarantee that every ML persistent task is assigned, just that
each is not unassigned due to upgrade mode.

In order to make setting upgrade mode work immediately after
unsetting upgrade mode it was then also necessary to make it
possible to stop a datafeed that was not assigned.  There was
no particularly good reason why this was not allowed in the past.
It is trivial to stop an unassigned datafeed because it just
involves removing the persistent task.
2019-02-19 14:07:10 +00:00
..
ccr Fix shard follow task startup error handling (#39053) 2019-02-19 08:54:02 +01:00
core Disable specific locales for tests in fips mode (#38938) 2019-02-19 08:46:08 +02:00
data-frame set minimum supported version (#39043) (#39051) 2019-02-18 15:41:25 +01:00
deprecation Make 7.x like 6.7 user agent ecs, but default to true (#38828) 2019-02-13 10:28:01 -06:00
graph Remove X-Pack centric graph endpoints (#36010) 2018-11-29 07:09:37 -05:00
ilm Introduce retention lease state file (#39004) 2019-02-18 16:53:46 -05:00
logstash Rename confusing variable holding name of Logstash index template (#36840) 2018-12-19 12:09:37 -07:00
ml [ML] Allow stop unassigned datafeed and relax unset upgrade mode wait (#39034) 2019-02-19 14:07:10 +00:00
monitoring [Monitoring] Remove `include_type_name` parameter from GET _template request (#38925) 2019-02-14 16:09:52 -08:00
rollup Switch mapping/aggregations over to java time (#36363) 2019-01-23 10:40:05 +01:00
security Disable specific locales for tests in fips mode (#38938) 2019-02-19 08:46:08 +02:00
sql SQL: fall back to using the field name for column label (#38842) 2019-02-14 14:10:59 +02:00
src/test [ML] Allow stop unassigned datafeed and relax unset upgrade mode wait (#39034) 2019-02-19 14:07:10 +00:00
upgrade Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00
watcher Only flush Watcher's bulk processor if Watcher is enabled (#38803) 2019-02-13 16:13:53 -07:00
build.gradle Add support for API keys to access Elasticsearch (#38291) 2019-02-05 14:21:57 +11:00