OpenSearch/x-pack/plugin
Alexander Reelsen 13880bd8c1
Watcher: Reload properly on remote shard change (#33167)
When a node dies that carries a watcher shard or a shard is relocated to
another node, then watcher needs not only trigger a reload on the node
where the shard relocation happened, but also on other nodes where
copies of this shard, as different watches may need to be loaded.

This commit takes the change of remote nodes into account by not only
storing the local shard allocation ids in the WatcherLifeCycleService,
but storing a list of ShardRoutings based on the local active shards.

This also fixes some tests, which had a wrong assumption. Using
`TestShardRouting.newShardRouting` in our tests for cluster state
creation led to the issue of always creating new allocation ids which
implicitely lead to a reload.
2018-08-29 22:42:08 +02:00
..
core [Rollup] Re-factor Rollup Indexer into a generic indexer for re-usability (#32743) 2018-08-29 14:28:21 -04: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] Re-factor Rollup Indexer into a generic indexer for re-usability (#32743) 2018-08-29 14:28:21 -04:00
security Fix forbidden apis on FIPS (#33202) 2018-08-29 17:43:40 +03: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: Reload properly on remote shard change (#33167) 2018-08-29 22:42:08 +02:00
build.gradle Allow Integ Tests to run in a FIPS-140 JVM (#31989) 2018-07-24 12:48:14 +03:00