Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1885

NativeFSLockFactory.makeLock(...).isLocked() does not work

Details

    • Bug
    • Status: Reopened
    • Blocker
    • Resolution: Fixed
    • None
    • 2.9
    • None
    • None
    • New

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: