elasticsearch/elasticsearch — pull request #7731 by bleskes (2014-09-15 18:19:47+00:00)
Title: Internal: ClusterHealthAPI does not respect waitForEvents when local flag is set

It uses a cluster state update task and it gets rejected if not run on a master node. We should enable running on non-masters if the local flag is set.

Also, report any unexpected error that may happen during this cluster state update task