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

validate per-segment delete counts on write

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: