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

IndexWriter.updateDocument is no longer atomic

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.3
    • core/index
    • None
    • New, Patch Available

    Description

      Spinoff from LUCENE-847.

      Ning caught that as of LUCENE-843, we lost the atomicity of the delete
      + add in IndexWriter.updateDocument.

      Ning suggested a simple fix: move the buffered deletes into
      DocumentsWriter and let it do the delete + add atomically. This has a
      nice side effect of also consolidating the "time to flush" logic in
      DocumentsWriter.

      Attachments

        1. LUCENE-992.patch
          26 kB
          Michael McCandless

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: