elasticsearch/elasticsearch — pull request #8551 by s1monw (2014-11-19 15:10:10+00:00)
Title: [CORE] Free pending search contexts if index is closed

Today we hold on to search context reference if they are not cleaned
up for a while until a reaper thread trashes them if they timed out.
This commit removes all pending contexts once the index is closed to release
resources and filehandles immediatly once the index is closed.