elasticsearch/elasticsearch — pull request #8966 by s1monw (2014-12-15 20:46:17+00:00)
Title: Shutdown indices service last

We do wait for shards to be closed in IndicesService for 30 second.
Yet, if somebody holds on to a store reference ie. an open scroll request
the 30 seconds time-out and node shutdown takes very long. We should
release all other resources first before we shutdown IndicesService.

Closes #8940