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

SimpleFSLockFactory ignores error on deleting the lock file

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.3
    • core/store
    • 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.patch
          7 kB
          Michael McCandless
        2. LUCENE-1050-2.patch
          1 kB
          Grant Ingersoll

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: