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

NativeFSLockFactory Race Condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.4, 3.5
    • None
    • core/store
    • Mac OS X 10.7, JDK 1.6
      CentOS 5, JDK 1.7u1

    • 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. LUCENE-3673.patch
          0.6 kB
          Yaokai Jiang
        2. BreakIt.java
          3 kB
          Yaokai Jiang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: