elasticsearch/elasticsearch — pull request #6686 by bleskes (2014-07-02 14:32:42+00:00)
Title: [Infra] Handle ConnectionTransportException during a Master/Node fault detection ping

Both the Master and Node fault detection register themselves to be notified when a node disconnects to be able to respond to it accordingly. As such, when a ConnectionTransportException was raised on a ping request, it was not handled it as it is already handled somewhere else. However, this does introduce a racing condition, if the disconnect happen during a period where there is no current master (minimum_master_node breach) at which time the fault detection is not active. This case we will only discover the disconnect error during the ping request, so we have to respond accordingly.