Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14971

AtomicUpdate 'remove' fails on 'pints' fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.5.2
    • Fix Version/s: 8.8, main (9.0)
    • Component/s: update
    • Labels:
      None

      Description

      The "remove" atomic update action on multivalued int fields fails if the document being changed is uncommitted.

      At first glance this appears to be a type-related issue. AtomicUpdateDocumentMerger attempts to handle multivalued int fields by processing the List<Integer> type, but in uncommitted docs int fields are still List<String> in the tlog. Conceptually this feels similar to SOLR-13331.

      It's likely this issue also affects other numeric and date fields.

      Attached is a simple script to reproduce, meant to be run from the root of a Solr install.

        Attachments

        1. reproduce.sh
          2 kB
          Jason Gerlowski

          Issue Links

            Activity

              People

              • Assignee:
                gerlowskija Jason Gerlowski
                Reporter:
                gerlowskija Jason Gerlowski
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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
                  1h