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

Exception during IndexWriter.close() prevents release of the write.lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Lucene 1.4 through 2.1 HEAD (as of 2006-12-14)

    • Lucene Fields:
      New

      Description

      After encountering a case of index corruption - see http://issues.apache.org/jira/browse/LUCENE-140 - when the close() method encounters an exception in the flushRamSegments() method, the index write.lock is not released (ie. it is not really closed).

      The writelock is only released when the IndexWriter is GC'd and finalize() is called.

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              jedws Jed Wesley-Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: