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

DocumentsWriter.abort fails to clear docStoreOffset

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.3
    • None
    • None
    • New

    Description

      I hit this in working on LUCENE-1044.

      If you disk full event during flush, then DocumentsWriter will abort
      (clear all buffered docs). Then, if you then add another doc or two,
      and then close your writer, and this time succeed in flushing (say
      because it's only a couple buffered docs so the resulting segment is
      smaller), you can flush a corrupt segment (that incorrectly has a
      non-zero docStoreOffset).

      I modified the TestConcurrentMergeScheduler test to show this bug.
      I'll attach a patch shortly.

      Attachments

        1. LUCENE-1143.patch
          8 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: