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

Markus Jelsma commented on SOLR-8447:
-------------------------------------

Ok, for whoever has this issue too:

{code}
  @Override
  public void processCommit(CommitUpdateCommand cmd) throws IOException {
    if (next != null) {
      next.processCommit(cmd);
    }
    
    RefCounted<SolrIndexSearcher> searcher = core.getRealtimeSearcher();
    searcher.decref();
{code}

The API-doc for getRealtimeSearcher doesn't mention that the decRef must be 
decremented and i didn't notice the docs for getRegisteredSearcher and 
getSearcher.

Thanks for letting me monologue my way out of this :p

> Nightly fail in org.apache.solr.handler.TestReplicationHandler: ObjectTracker 
> found 9 object(s) that were not released!!! [NRTCachingDirectory, ...
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8447
>                 URL: https://issues.apache.org/jira/browse/SOLR-8447
>             Project: Solr
>          Issue Type: Test
>            Reporter: Mark Miller
>            Priority: Minor
>
> Build: https://builds.apache.org/job/Lucene-Solr-NightlyTests-trunk/886/



--
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