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

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

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

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
>             Fix For: master (7.0), 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]

Reply via email to