Simon Willnauer created LUCENE-6488:
---------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]