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

IndexWriter.addIndexes(IndexReader[]) fails to create compound files

Details

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

    Description

      Even if no exception is thrown while writing the compound file at the end of the
      addIndexes() call, the transaction is rolled back and the successfully written cfs
      file deleted. The fix is simple: There is just the

      success = true;
      

      statement missing at the end of the try{} clause.

      All tests pass. I'll commit this soon to trunk and 2.3.2.

      Attachments

        1. lucene-1226.patch
          0.5 kB
          Michael Busch

        Activity

          People

            michaelbusch Michael Busch
            michaelbusch Michael Busch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: