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

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

Commit d19dcb4ff0c221400b94705c3d0631c274fd6e75 in lucene-solr's branch 
refs/heads/master from Alan Woodward
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=d19dcb4 ]

LUCENE-8726: ValueSource.asDoubleValuesSource() could leak a reference to 
IndexSearcher


> WrappedDoubleValuesSource can leak IndexSearcher references
> -----------------------------------------------------------
>
>                 Key: LUCENE-8726
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8726
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>         Attachments: LUCENE-8726.patch
>
>
> Cause of SOLR-13315
> Index-specific DoubleValuesSources can be created by 
> DoubleValuesSource.rewrite(), and the various consumers of these sources are 
> careful not to store these rewritten sources on long-lived objects, such as 
> queries that may be re-used between searchers.  However, the bridge code 
> between ValueSource and DoubleValuesSource does not return a new object from 
> its rewrite method, instead caching the passed-in IndexSearcher, which means 
> references to this searcher may leak.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to