Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add artifial delay to start in DiscoveryService and remove ClusterCha…
…ngeEvent workaround When a node starts up and elects itself as master then the first cluster state might not be sent to the other nodes because - discovery starts - node elects itself and applies cluster state 1 locally - does not send it to the other nodes because the lifecycle is not started yet in DiscoveryService.publish() (that is onlty set after doStart() is called) As a result the data node only receives the second cluster state. State persistence is not disabled. If the cluster state does not contain the index (for example because the the master was started with empty data folder and does not contain old cluster state) then the data node interprets the fact that the index is missing from the new clsuter state as a delete and so deletes all shards.
- Loading branch information