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

Deadlock case in IndexWriter on exception just before flush

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment