elasticsearch/elasticsearch — pull request #7042 by bleskes (2014-07-25 19:38:03+00:00)
Title: [Discovery] add cluster name and cluster state version to fault detection pinging

Add the cluster name and cluster state version to NodesFaultDetection pings. This allows resolving the case where a old master node become unresponsive and later wakes up and pings all the nodes in the cluster, allowing the newly elected master to decide whether it should step down or ask the old master to rejoin.

Add the cluster name to MasterFaultDetection ping request, to verify that the master we're pinging is of the same cluster. This is useful where multiple test clusters run on the same network and adds another protection layer.

To simulate situations where this is helpful, a new test is added utilising a new ClusterSchemeDisruption to long GCs on a cluster's master node.

Note: this PR is against the improve zen brunch.