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

Deadlock case in IndexWriter on exception just before flush

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3, 2.3.1
    • Fix Version/s: 2.3.2, 2.4
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: