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

SimpleFSLockFactory ignores error on deleting the lock file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: core/store
    • Labels:
      None

      Description

      Spinoff from here:

      http://www.gossamer-threads.com/lists/lucene/java-user/54438

      The Lock.release for SimpleFSLockFactory ignores the return value of lockFile.delete(). I plan to throw a new LockReleaseFailedException, subclassing from IOException, when this returns false. This is a very minor change to backwards compatibility because all methods in Lucene that release a lock already throw IOException.

        Attachments

        1. LUCENE-1050-2.patch
          1 kB
          Grant Ingersoll
        2. LUCENE-1050.patch
          7 kB
          Michael McCandless

          Issue Links

            Activity

              People

              • Assignee:
                gsingers Grant Ingersoll
                Reporter:
                mikemccand Michael McCandless
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: