You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/01/25 15:41:26 UTC

[jira] [Commented] (LUCENE-7657) Queries that reference a TermContext can cause a memory leak when they are cached

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org