[
https://issues.apache.org/jira/browse/LUCENE-7657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrien Grand updated LUCENE-7657:
---------------------------------
Fix Version/s: 5.5.4
> Queries that reference a TermContext can cause a memory leak when they are
> cached
> ---------------------------------------------------------------------------------
>
> Key: LUCENE-7657
> URL: https://issues.apache.org/jira/browse/LUCENE-7657
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Adrien Grand
> Fix For: master (7.0), 5.5.4, 6.5, 6.4.1
>
> Attachments: LUCENE-7657.patch, LUCENE-7657.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]