elasticsearch/elasticsearch — pull request #6971 by kimchy (2014-07-22 22:51:49+00:00)
Title: retry logic to unwrap exception to check for illegal state

it probably comes wrapped in a remote exception, which we should unwrap in order to detect it..., also, simplified a bit the retry logic