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

ExportWriter fails with max values for fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1, main (10.0), 9.0.1
    • Export Writer
    • None

    Description

      TestExportWriter.testMultipleSorts has been hanging and epugh shared this seed that reproduced:

      ./gradlew :solr:core:test --tests “org.apache.solr.handler.export.TestExportWriter.testMultipleSorts” -Ptests.jvms=4 “-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m” -Ptests.seed=9ED4BC2C416D56E9 -Ptests.file.encoding=US-ASCI
      

      https://lists.apache.org/list?builds@solr.apache.org:lte=1y:&header_body=org.apache.solr.handler.export.TestExportWriter.testMultipleSorts

      Looking into the failure found that if Float.MAX_VALUE is chosen and document ends up being compared to the top doc. That document will get skipped since MAX_VALUE can't be more than MAX_VALUE.

      This causes the export writer to hang looking for more documents indefinitely until the test framework times out.

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              krisden Kevin Risden
              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 - 0.5h
                  0.5h