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

IndexWriter.updateDocument is no longer atomic

    XMLWordPrintableJSON

    Details

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

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

              Dates

              • Created:
                Updated:
                Resolved: