You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2016/06/21 10:49:57 UTC

[jira] [Created] (LUCENE-7349) NIOFS and SimpleFSDirectory may leak files if Channel#size() throws an exception

Simon Willnauer created LUCENE-7349:
---------------------------------------

             Summary: NIOFS and SimpleFSDirectory may leak files if Channel#size() throws an exception
                 Key: LUCENE-7349
                 URL: https://issues.apache.org/jira/browse/LUCENE-7349
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: 6.1, 6.0
            Reporter: Simon Willnauer
             Fix For: 6.2, 6.1.1


We call Channel#size() inside the NIOFSIndexInput ctor but ignore the fact that it can throw an IOException. I ran into this due to a ClosedByInterrupt exception which we explicitly state don't support. This can also happen due to 
an IOException and we should at least not leak a file handle in such a case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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