OpenSearch/core
Yannick Welsch 86aab98fde [TEST] Fix race condition in ZenDiscoveryIT.testDiscoveryStats
With #24236, the master now uses the pending queue when publishing to itself. This means that a cluster state update is put into the pending queue,
then sent to the ClusterApplierService to be applied. After it has been applied, it is marked as processed and removed from the pending queue.
ensureGreen is implemented as a cluster health action that waits on certain conditions, which will lead to a cluster state update task to be submitted
on the master. When this task gets to run and the conditions are not satisfied yet, it register a cluster state observer. This observer is registered
on the ClusterApplierService and waits on cluster state change events. ClusterApplierService first notifies the observer and then the discovery
layer. This means that there is a small time frame where ensureGreen can complete and call the node stats to find the pending queue still containing
the last cluster state update.

Closes #24388
2017-04-28 20:42:56 +02:00
..
licenses Upgrade to a Lucene 7 snapshot (#24089) 2017-04-18 15:17:21 +02:00
src [TEST] Fix race condition in ZenDiscoveryIT.testDiscoveryStats 2017-04-28 20:42:56 +02:00
build.gradle Build: Switch jna dependency to an elastic version (#24081) 2017-04-13 00:17:50 -07:00