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

OOM or exceptions during checkpoint make IndexWriter have a bad day

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 4.10.1, 5.0, 6.0
    • None
    • None
    • New

    Description

      During finishCommit(), we run checkpoint after we wrote the commit to disk, but if things go wrong here (e.g. IOError when IFD deletes a pending file, OOM), then everything will go wrong (we won't even properly incref things, and may end out deleting wrong files if the user calls rollback, leaving a corrupt index).

      Attachments

        1. LUCENE-5958.patch
          29 kB
          Robert Muir
        2. LUCENE-5958.patch
          8 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: