elasticsearch/elasticsearch — pull request #6244 by martijnvg (2014-05-20 11:51:34+00:00)
Title: Improve cluster update settings api

* Verify that the current node is still master before the reroute is execu...ted and if that isn't the case skip reroute.
* Invoke listener when reroute fails.