[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-24 Thread ASF subversion and git services (JIRA)

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

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

Commit 1589824 from [~thetaphi] in branch 'dev/branches/lucene_solr_4_8'
[ https://svn.apache.org/r1589824 ]

Merged revision(s) 1589814 from lucene/dev/branches/branch_4x:
Merged revision(s) 1589813 from lucene/dev/trunk:
LUCENE-5626: Move changes entry (merge props only)

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
>Priority: Blocker
> Fix For: 4.8, 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-24 Thread ASF subversion and git services (JIRA)

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

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

Commit 1589814 from [~thetaphi] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1589814 ]

Merged revision(s) 1589813 from lucene/dev/trunk:
LUCENE-5626: Move changes entry

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
>Priority: Blocker
> Fix For: 4.8, 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-24 Thread ASF subversion and git services (JIRA)

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

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

Commit 1589813 from [~thetaphi] in branch 'dev/trunk'
[ https://svn.apache.org/r1589813 ]

LUCENE-5626: Move changes entry

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
>Priority: Blocker
> Fix For: 4.8, 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-24 Thread ASF subversion and git services (JIRA)

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

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

Commit 1589811 from [~thetaphi] in branch 'dev/branches/lucene_solr_4_8'
[ https://svn.apache.org/r1589811 ]

Merged revision(s) 1589397 from lucene/dev/branches/branch_4x:
Merged revision(s) 1589394 from lucene/dev/trunk:
LUCENE-5626: Fix bug in SimpleFSLockFactory's obtain() that sometimes throwed 
IOException (ERROR_ACESS_DENIED) on Windows if the lock file was created 
concurrently

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
>Priority: Blocker
> Fix For: 4.8, 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread ASF subversion and git services (JIRA)

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

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

Commit 1589397 from [~thetaphi] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1589397 ]

Merged revision(s) 1589394 from lucene/dev/trunk:
LUCENE-5626: Fix bug in SimpleFSLockFactory's obtain() that sometimes throwed 
IOException (ERROR_ACESS_DENIED) on Windows if the lock file was created 
concurrently

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread ASF subversion and git services (JIRA)

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

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

Commit 1589394 from [~thetaphi] in branch 'dev/trunk'
[ https://svn.apache.org/r1589394 ]

LUCENE-5626: Fix bug in SimpleFSLockFactory's obtain() that sometimes throwed 
IOException (ERROR_ACESS_DENIED) on Windows if the lock file was created 
concurrently

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Uwe Schindler (JIRA)

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

Uwe Schindler commented on LUCENE-5626:
---

In fact this is a major pain and goes back to MS DOS times... If you at some 
time used the Win32 API, you know that whenever windows does not know how to 
handle a file it returns ERROR_ACCESS_DENIED on GetLastError (0x5). This is 
just the error code for, "everything DOS never supported".

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Uwe Schindler (JIRA)

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

Uwe Schindler commented on LUCENE-5626:
---

Some comment from StackOverflow: 
http://stackoverflow.com/questions/4312568/what-causes-writefile-to-return-error-access-denied

{quote}
There is about a dozen different situations that might result in 
ERROR_ACCESS_DENIED. Internally, all WriteFile does is call NtWriteFile and map 
its (somewhat meaningful) NTSTATUS error code into a less meaningful HRESULT.

Among other things, ERROR_ACCESS_DENIED could indicate that the file is on a 
network volume and something went wrong with write permissions, or that the 
file is really not a file but a directory.
{quote}

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Uwe Schindler (JIRA)

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

Uwe Schindler commented on LUCENE-5626:
---

Windows responds with this error code whenever a file is opened by another or 
the same process and you want to change the directory entry/inode/whatever of a 
file. Quite common, nothing special.

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Dawid Weiss (JIRA)

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

Dawid Weiss commented on LUCENE-5626:
-

Access denied... why? :)

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Uwe Schindler (JIRA)

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

Uwe Schindler commented on LUCENE-5626:
---

bq. It would be interesting to see what GetLastError shows, but for this you'd 
have to access winapi (via jna or something alike). I can't reproduce this 
locally, unfortunately.

Very simple: "Access denied". The JNI code transforms GetLastError to a string 
and throws it as IOException.

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch, LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Dawid Weiss (JIRA)

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

Dawid Weiss commented on LUCENE-5626:
-

It would be interesting to see what GetLastError shows, but for this you'd have 
to access winapi (via jna or something alike). I can't reproduce this locally, 
unfortunately.

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Uwe Schindler (JIRA)

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

Uwe Schindler commented on LUCENE-5626:
---

bq. Interestingly enough, its code comment refers to MacOS X...

But it applies to Windows, too! If I disable it, it fails on my machine, too!

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Robert Muir (JIRA)

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

Robert Muir commented on LUCENE-5626:
-

Patch looks good. Thanks Uwe.

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Uwe Schindler (JIRA)

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

Uwe Schindler commented on LUCENE-5626:
---

bq. See this post, interesting. 
http://stackoverflow.com/questions/10516472/file-createnewfile-randomly-fails

Thanks. Virus scanner or Indexer are not a problem on Jenkins, as they are 
disabled there. Otherwise the tests never pass :-) The same on my local 
machine, I excluded all directories that are development from virus and indexer.

> SimpleFSLockFactory "access denied" on windows.
> ---
>
> Key: LUCENE-5626
> URL: https://issues.apache.org/jira/browse/LUCENE-5626
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/store
>Reporter: Robert Muir
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Robert Muir (JIRA)

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

Robert Muir commented on LUCENE-5626:
-

Yes the NativeFSLockFactory already has a catch block for this. 

Interestingly enough, its code comment refers to MacOS X...



> 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
> Attachments: LUCENE-5626.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Dawid Weiss (JIRA)

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

Dawid Weiss commented on LUCENE-5626:
-

See this post, interesting. 
http://stackoverflow.com/questions/10516472/file-createnewfile-randomly-fails

> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Robert Muir (JIRA)

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

Robert Muir commented on LUCENE-5626:
-

Is it easy with the macro to increase the number of lock clients? Perhaps that 
is enough to trigger the issue.

> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5626) SimpleFSLockFactory "access denied" on windows.

2014-04-23 Thread Uwe Schindler (JIRA)

[ 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org