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

validate per-segment delete counts on write

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.8, 6.0
    • None
    • None
    • New

    Description

      When reading the segment infos, we already check if the delCount is out of bounds for a segment (< 0 or > docCount) and throw CorruptIndexException if so.

      I think we should catch this when writing as well, in case there are Lucene bugs that mess up the delete counts. We have just an assert today...

      Attachments

        1. LUCENE-5615.4x.patch
          4 kB
          Michael McCandless
        2. LUCENE-5615.patch
          3 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: