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

IOExeception can cause loss of data due to premature segment deletion

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If you hit an IOException, e.g., disk full, while making a cfs from its constituent parts, you may not be able to rollback to the before-merge process. This happens via addIndexes.

      I don't have a nice easy test for this; generating IOEs ain't so easy. But it does happen in the patch for the factored merge policy with the existing tests because the pseudo-randomly generated IOEs fall in a different place.

        Attachments

        1. LUCENE-846-test.txt
          100 kB
          Steven Parkes

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: