You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2014/04/23 13:41:15 UTC
[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access
denied" on windows.
[ https://issues.apache.org/jira/browse/LUCENE-5626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978084#comment-13978084 ]
Uwe Schindler commented on LUCENE-5626:
---------------------------------------
Hi,
this is almost impossible to reproduce here locally. It is also a concurrency issue on windows. The problem is: if there is already something else trying to create the file, Windows generally responds with
I think we should catch IOException in the obtain() method and handle this in a similar way like in NIOFSDir (return false, so lock was not aquired).
I will provide a patch after trying to reproduce this on windows (by making filesystem and cpu busy).
> SimpleFSLockFactory "access denied" on windows.
> -----------------------------------------------
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
>
> This happened twice in jenkins:
> {noformat}
> [lockStressTest2] Exception in thread "main" java.io.IOException:
> Access is denied
> [lockStressTest2] at
> java.io.WinNTFileSystem.createFileExclusively(Native Method)
> [lockStressTest2] at java.io.File.createNewFile(File.java:1012)
> [lockStressTest2] at
> org.apache.lucene.store.SimpleFSLock.obtain(SimpleFSLockFactory.java:135)
> {noformat}
> My windows machine got struck by lightning, so I cannot fix this easily.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org