[ https://issues.apache.org/jira/browse/LUCENE-9423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17154548#comment-17154548 ]
ASF subversion and git services commented on LUCENE-9423: --------------------------------------------------------- Commit 20ec57a4fed3a6a691eca6c76a8e0e8977d5eb63 in lucene-solr's branch refs/heads/master from Nhat Nguyen [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=20ec57a ] LUCENE-9423: Handle exc in NIOFSDirectory#openInput (#1658) If we fail to get the size of a file in the constructor of NIOFSIndexInput, then we will leak a FileChannel opened in NIOFSDirectory#openInput. > 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 > Time Spent: 0.5h > Remaining Estimate: 0h > > 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