elasticsearch/elasticsearch — pull request #6189 by bleskes (2014-05-15 14:50:28+00:00)
Title: When sending shard start/failed message due to a cluster state change, use the master indicated in the new state rather than current

This commit also adds extra protection in other cases against a master node being de-elected and thus being null.