[
https://issues.apache.org/jira/browse/LUCENE-7657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837923#comment-15837923
]
ASF subversion and git services commented on LUCENE-7657:
---------------------------------------------------------
Commit f5301428452ee5f9145ef4ecb889442d4e09f1cb in lucene-solr's branch
refs/heads/master from [~jpountz]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=f530142 ]
LUCENE-7657: Fixed potential memory leak when a (Span)TermQuery that wraps a
TermContext is cached.
> 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
> 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.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]