Would it be too much trouble to query a node and ask it who is its master ?
I've been running elastic search for some time now and I'd really like to
write some admin tools to deal with the cluster. This is one of the problems
I run into quite often and it's always a pain to debug.
I think maybe a new field /_cluster/state will help too.