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

Replacing uniqueKey field via fl doesn't work in distributed since 9.0 (Not Fixed)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.2
    • None
    • None

    Description

      User reported a use case which were working before 9 but not anymore. 

      The point is to logically replace a field (hereby it's id but it might behave same for any other)

      fl=old_id:id,id:new_id

      I'd say it's a kind of $mv new_id id. I've made a simple reproducer.

      it fails with 

       - org.apache.solr.cloud.TestCloudPseudoReturnFields.test_mv_fl (:solr:core) 
      [7597|https://github.com/apache/solr/actions/runs/4276380498/jobs/7444431149#step:4:7598] Test output: /tmp/src/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.TestCloudPseudoReturnFields.txt 
      [7598|https://github.com/apache/solr/actions/runs/4276380498/jobs/7444431149#step:4:7599] Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.TestCloudPseudoReturnFields.test_mv_fl" -Ptests.jvms=96 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:+UseParallelGC -XX:ActiveProcessorCount=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=4CCEBE424880B511 -Ptests.file.encoding=US-ASCII
      

      . Then I applied it to revision preceding SOLR-9376 and test passed.  For me it seems like:

       - Solr behaved like described before, but it does not after SOLR-9376.  

       - Should we reproduce this behavior or we can suggest a workaround? 

       

      Attachments

        1. image-2023-02-26-09-48-59-323.png
          42 kB
          Mikhail Khludnev
        2. image-2023-02-26-09-48-31-974.png
          38 kB
          Mikhail Khludnev

        Issue Links

          Activity

            People

              mkhl Mikhail Khludnev
              mkhl Mikhail Khludnev
              Votes:
              0 Vote for this issue
              Watchers:
              8 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