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

Deadlock case in IndexWriter on exception just before flush

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3, 2.3.1
    • 2.3.2, 2.4
    • core/index
    • None
    • New

    Description

      If a document hits a non-aborting exception, eg something goes wrong
      in tokenStream.next(), and, that document had triggered a flush
      (due to RAM or doc count) then DocumentsWriter will deadlock because
      that thread marks the flush as pending but fails to clear it on
      exception.

      I have a simple test case showing this, and a fix fixing it.

      Attachments

        1. LUCENE-1208.patch
          2 kB
          Michael McCandless

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: