OpenSearch/server
David Turner ca3f5c1e2e
Cancel GetDiscoveredNodesAction when bootstrapped (#36423)
Today the `GetDiscoveredNodesAction` waits, possibly indefinitely, to discover
enough nodes to bootstrap the cluster. However it is possible that the cluster
forms before a node has discovered the expected collection of nodes, in which
case the action will wait indefinitely despite the fact that it is no longer
required.

This commit changes the behaviour so that the action fails once a node receives
a cluster state with a nonempty configuration, indicating that the cluster has
been successfully bootstrapped and therefore the `GetDiscoveredNodesAction`
need wait no longer.

Relates #36380 and #36381; reverts 558f4ec278.
2018-12-10 17:23:03 +00:00
..
licenses Upgrade to Lucene-8.0.0-snapshot-aaa64d70159 (#36335) 2018-12-06 20:33:25 -05:00
src Cancel GetDiscoveredNodesAction when bootstrapped (#36423) 2018-12-10 17:23:03 +00:00
build.gradle Build: Use explicit deps on test tasks for check (#36325) 2018-12-06 14:13:49 -08:00