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

Reproducing test failure for TestRandomDVFaceting

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0
    • 9.0
    • None
    • None

    Description

      Was testing out my new laptop and I hit this reproducing failure:

      ERROR: The following test(s) have failed:
        - org.apache.solr.TestRandomDVFaceting.testRandomFaceting (:solr:core)
          Test output: /Users/gus/projects/apache/solr/code/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.TestRandomDVFaceting.txt
          Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.TestRandomDVFaceting.testRandomFaceting" -Ptests.jvms=10 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=D7D46A8DCC1CFDE6 -Ptests.file.encoding=US-ASCII
      

      This might be similar to SOLR-14990 but that issue didn't record a stack trace or error message. For this issue I see

         >         Caused by:
         >         java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1
         >             at org.apache.lucene.util.packed.DirectMonotonicReader.get(DirectMonotonicReader.java:149)
         >             at org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.getTermFromIndex(Lucene90DocValuesProducer.java:1077)
         >             at org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.seekTermsIndex(Lucene90DocValuesProducer.java:1089)
         >             at org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.seekBlock(Lucene90DocValuesProducer.java:1115)
         >             at org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.seekCeil(Lucene90DocValuesProducer.java:1146)
         >             at org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$BaseSortedDocValues.lookupTerm(Lucene90DocValuesProducer.java:941)
         >             at org.apache.lucene.index.SingletonSortedSetDocValues.lookupTerm(SingletonSortedSetDocValues.java:100)
         >             at org.apache.solr.request.DocValuesFacets.getCounts(DocValuesFacets.java:107)
         >             at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:588)
         >             at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:420)
         >             at org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$0(SimpleFacets.java:828)
         >             ... 59 more
      

      Which might be a lucene level issue anyway, don't have time to properly investigate, but opening this to track.

      Attachments

        1. image-2022-02-03-14-18-11-868.png
          784 kB
          Jan Høydahl
        2. Skjermbilde 2022-02-03 kl. 14.38.36.png
          55 kB
          Jan Høydahl
        3. testRandom.png
          39 kB
          Jan Høydahl

        Issue Links

          Activity

            People

              houston Houston Putman
              gus Gus Heck
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 40m
                  40m