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

remove FieldInfos leniency

Details

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

    Description

      The current behavior is sheisty: it always returns null for negative field numbers (without consulting the map).

      This means if a field number somehow became negative, there would be silent data loss.

      Instead, we should throw exception on negative numbers.

      Attachments

        1. LUCENE-5616.patch
          4 kB
          Robert Muir
        2. LUCENE-5616.patch
          2 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: