Description
The TermContext class has a reference to the top reader context of the IndexReader that was used to build it. So if you build a (Span)TermQuery that references a TermContext and this query gets cached, then it will keep holding a reference to the index reader, even after the latter gets closed.
Attachments
Attachments
Issue Links
- is duplicated by
-
LUCENE-7652 LRUQueryCache / IndexSearcher.DEFAULT_QUERY_CACHE memory leak
- Closed