elasticsearch/elasticsearch — pull request #6881 by bleskes (2014-07-15 18:13:41+00:00)
Title: [Infra] re-send failed shard messages when receiving a cluster state still referring to them

In rare cases we may fail to send a shard failure event to the master, or there is no known master when the shard has failed (ex. a couple of node leave the cluster canceling recoveries and causing a master to step down at the same time). When that happens and a cluster state arrives from the (new) master we should resend the shard failure in order for the master to remove the shard from this node.