lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6488) HandleTrackingFs leaks files if #onClose throws an exception
Date Mon, 18 May 2015 12:23:00 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547927#comment-14547927
] 

ASF subversion and git services commented on LUCENE-6488:
---------------------------------------------------------

Commit 1680005 from [~simonw] in branch 'dev/trunk'
[ https://svn.apache.org/r1680005 ]

LUCENE-6488: Ensure files are closed if onClose/onOpen throws an Exception

> HandleTrackingFs leaks files if #onClose throws an exception
> ------------------------------------------------------------
>
>                 Key: LUCENE-6488
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6488
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/test-framework
>    Affects Versions: 5.1
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Minor
>             Fix For: Trunk, 5.x, 5.2
>
>         Attachments: LUCENE-6488.patch, LUCENE-6488.patch
>
>
> if #onClose throws an exception for instance due to an error in #onOpen we leak the filehandle
since we don't call super.close(). I ran into this in Elasticsearch tests where files are
concurrently deleted and we got a WindowsFS -> LeakFS -> UnixFs. The UnixFS opened the
file but by the time WindowsFS tried to read the files metadata it was already deleted causing
onOpen to barf and we leaked the file.



--
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


Mime
View raw message