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

NativeFSLockFactory Race Condition

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4, 3.5
    • Fix Version/s: None
    • Component/s: core/store
    • Environment:

      Mac OS X 10.7, JDK 1.6
      CentOS 5, JDK 1.7u1

    • Lucene Fields:
      New, Patch Available

      Description

      When the NativeFSLock releases, it deletes the lock file after lock release.
      In a concurrent situation, it is possible for another thread or process to acquire the lock before the delete happens. Any other third thread or process will then be able to recreate the lock file and acquire the lock while a lock is already held on the deleted file.

        Attachments

        1. BreakIt.java
          3 kB
          Yaokai Jiang
        2. LUCENE-3673.patch
          0.6 kB
          Yaokai Jiang

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jiangyaokai Yaokai Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: