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

Simon Willnauer closed LUCENE-7349.
-----------------------------------
    Resolution: Not A Problem

sorry for bothering

> 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.0, 6.1
>            Reporter: Simon Willnauer
>             Fix For: 6.2, 6.1.1
>
>         Attachments: LUCENE-7349.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to