lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6499) WindowsFS misses to remove open file handle if file is concurrently deleted
Date Tue, 26 May 2015 08:11:17 GMT

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

Dawid Weiss commented on LUCENE-6499:
-------------------------------------

Typo in "regeistered".  Wrt. cyclicbarrier or countdownlatch -> the first one keeps an
even starting line for all the threads involved; with countdownlatch you could have the countDown()
thread proceed long before any other threads reach await. In practice I don't think this makes
any difference.

> WindowsFS misses to remove open file handle if file is concurrently deleted
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-6499
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6499
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/test-framework
>    Affects Versions: 5.1
>            Reporter: Simon Willnauer
>             Fix For: Trunk, 5.3
>
>         Attachments: LUCENE-6499.patch, LUCENE-6499.patch
>
>
> WindowsFs has some race conditions when files are concurrently opened and deleted. A
file might be successfully opened while concurrently deleted which should be prevented by
the WindowsFS with an IOException / access denied. The problem is that we try to remove the
leaked file handle form the internal map on close which fails since we fail to read the key
from the filesystem since it has already been deleted. This manifests in subsequent `access
denied` exceptions even though all streams on the file are closed.



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