You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2018/04/06 20:31:00 UTC

[jira] [Commented] (LUCENE-8244) SearcherTaxonomyManager.refreshIfNeeded leaks file handles on exception

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

Michael McCandless commented on LUCENE-8244:
--------------------------------------------

I attached patch w/ test case and fix.

> SearcherTaxonomyManager.refreshIfNeeded leaks file handles on exception
> -----------------------------------------------------------------------
>
>                 Key: LUCENE-8244
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8244
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/facet
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Major
>         Attachments: LUCENE-8244.patch
>
>
> This method first refreshes the main index, and then the taxonomy, but if an exception is hit while refreshing the taxonomy, it fails to close the new reader it opened from the main index.



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

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