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

DV update are broken for updates on new field

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      A segmemnt written with Lucene70Codec failes if it ties to update
      a DV field that didn't exist in the index before it was upgraded to
      Lucene80Codec. We bake the DV format into the FieldInfo when it's used
      the first time and therefor never go to the codec if we need to update.
      yet on a field that didn't exist before and was added during an indexing
      operation we have to consult the coded and get an exception.
      This change fixes this issue and adds the relevant bwc tests.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                simonw Simon Willnauer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m