[ 
https://issues.apache.org/jira/browse/LUCENE-9423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nhat Nguyen updated LUCENE-9423:
--------------------------------
          Component/s: core/store
    Affects Version/s: 8.7
                       master (9.0)

> Leaking FileChannel in NIOFSDirectory#openInput
> -----------------------------------------------
>
>                 Key: LUCENE-9423
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9423
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/store
>    Affects Versions: master (9.0), 8.7
>            Reporter: Nhat Nguyen
>            Assignee: Nhat Nguyen
>            Priority: Major
>
> If we fail to get the 
> [size|https://github.com/apache/lucene-solr/blob/82692e76e054d3e6938034e96a4e9632bd9f7a70/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.java#L107]
>  of a file in the constructor of NIOFSIndexInput, then we will leak a 
> FileChannel opened in NIOFSDirectory#openInput. This bug is discovered by a 
> test failure in 
> [Elasticsearch|https://github.com/elastic/elasticsearch/issues/39585#issuecomment-654995186].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to