You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Nhat Nguyen (Jira)" <ji...@apache.org> on 2020/07/07 20:33:00 UTC
[jira] [Updated] (LUCENE-9423) Leaking FileChannel in
NIOFSDirectory#openInput
[ https://issues.apache.org/jira/browse/LUCENE-9423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nhat Nguyen updated LUCENE-9423:
--------------------------------
Description: 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]. (was: 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.)
> Leaking FileChannel in NIOFSDirectory#openInput
> -----------------------------------------------
>
> Key: LUCENE-9423
> URL: https://issues.apache.org/jira/browse/LUCENE-9423
> Project: Lucene - Core
> Issue Type: Bug
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org