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

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

    Details

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

      1. lucene-1226.patch
        0.5 kB
        Michael Busch

        Activity

        Hide
        michaelbusch Michael Busch added a comment -

        Committed to trunk & 2.3 branch.

        Show
        michaelbusch Michael Busch added a comment - Committed to trunk & 2.3 branch.

          People

          • Assignee:
            michaelbusch Michael Busch
            Reporter:
            michaelbusch Michael Busch
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development