OpenSearch/x-pack/plugin
Alexander Reelsen b6f762d131
Watcher: Ensure TriggerEngine start replaces existing watches (#33157)
This commit ensures that when `TriggerService.start()` is called,
we ensure in the trigger engine implementations that current watches are
removed instead of adding to the existing ones in
`TickerScheduleTriggerEngine.start()`

Two additional minor fixes, where the result remains the same but less code gets executed.

1. If the node is not a data node, we forgot to set the status to
STARTING when watcher is being started. This should not be a big issue,
because a non-data node does not spent a lot of time loading as there
are no watches which need loading.
2. If a new cluster state came in during a reload, we had two checks in
place to abort loading the current one. The first one before we load all
the watches of the local node and the second before watcher is starting
with those new watches. Turned out that the first check was not
returning, which meant we always tried to load all the watches, and then
would fail on the second check. This has been fixed here.
2018-08-30 10:53:01 +02:00
..
core [TESTS] Pin MockWebServer to TLS1.2 (#33127) 2018-08-30 09:13:28 +03:00
deprecation Remove unsupported Version.V_5_* (#32937) 2018-08-24 09:51:21 +02:00
graph Build: Rework shadow plugin configuration (#32409) 2018-08-21 20:03:28 -04:00
logstash Build: Rework shadow plugin configuration (#32409) 2018-08-21 20:03:28 -04:00
ml [ML] Fix character set finder bug with unencodable charsets (#33234) 2018-08-29 14:56:02 +01:00
monitoring Switch remaining LLREST usage to new style Requests (#33171) 2018-08-28 14:20:14 -04:00
rollup [Rollup] Only allow aggregating on multiples of configured interval (#32052) 2018-08-29 17:10:00 -04:00
security [Kerberos] Add unsupported languages for tests (#33253) 2018-08-30 12:08:29 +10:00
sql Consider multi release jars when running third party audit (#33206) 2018-08-29 09:53:04 +03:00
src/test [Rollup] Re-factor Rollup Indexer into a generic indexer for re-usability (#32743) 2018-08-29 14:28:21 -04:00
upgrade HLREST: add reindex API (#32679) 2018-08-28 13:02:23 -04:00
watcher Watcher: Ensure TriggerEngine start replaces existing watches (#33157) 2018-08-30 10:53:01 +02:00
build.gradle Allow Integ Tests to run in a FIPS-140 JVM (#31989) 2018-07-24 12:48:14 +03:00