[ 
https://issues.apache.org/jira/browse/LUCENE-7657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837999#comment-15837999
 ] 

ASF subversion and git services commented on LUCENE-7657:
---------------------------------------------------------

Commit bfb8a6124ade651a308418cc8320abd3e7cdb398 in lucene-solr's branch 
refs/heads/branch_6_4 from [~jpountz]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=bfb8a61 ]

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]

Reply via email to