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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to