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

SegmentMerger should assert .del and .s* files are not passed to createCompoundFile

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.2, 4.0-ALPHA
    • core/index
    • None
    • New, Patch Available

    Description

      Spinoff from LUCENE-3126. SegmentMerger.createCompoundFile does not document that it should not receive files that are not included in the .cfs, such as .del and .s* (separate norms). Today, that method is called from code which ensures that, but we should:

      1. Add some documentation to clarify that.
      2. Add some asserts so that if a test (or other code, running w/ -ea) does that, we catch it.

      Will post a patch soon

      Attachments

        1. LUCENE-3143.patch
          4 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: