lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] Commented: (LUCENE-1885) NativeFSLockFactory.makeLock(...).isLocked() does not work
Date Thu, 03 Sep 2009 06:17:33 GMT


Uwe Schindler commented on LUCENE-1885:

The new patch in LUCENE-1877 changes the isLocked() method to shortcut, if no lock file is
present. In this case, without a lockfile, it cannot be not locked. This prevent NativeFSLock
for creating the lock short time without really using it.

> NativeFSLockFactory.makeLock(...).isLocked() does not work
> ----------------------------------------------------------
>                 Key: LUCENE-1885
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>            Priority: Blocker
>             Fix For: 2.9
> IndexWriter.isLocked() or IndexReader.isLocked() do not work with NativeFSLockFactory.
> The problem is, that the method NativeFSLock.isLocked() just checks if the same lock
instance was locked before (lock != null). If the LockFactory created a new lock instance,
this always returns false, even if its locked.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message