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

TestGroupFacetCollector#testRandom has caught IndexOutOfBoundsException a couple times

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • modules/grouping
    • None
    • New

    Description

      Random testing has caught an IndexOutOfBoundsException a couple times now in org.apache.lucene.search.grouping.TestGroupFacetCollector.testRandom. I was able to reproduce locally with ./gradlew :lucene:grouping:test --tests "org.apache.lucene.search.grouping.TestGroupFacetCollector.testRandom" -Ptests.jvms=4 -Ptests.haltonfailure=false -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=91EC8BE9DE2A5BAB -Ptests.multiplier=2 -Ptests.badapples=false -Ptests.file.encoding=US-ASCII.

      From what I can tell, the exception is coming from way down in ByteBuffersDataInput#readBytes on this line. Popping the stack a bit, it seems like the issue is maybe in TermGroupFacetCollector$MV$SegmentResult#nextTerm.

      I'm not totally sure if this is an actual bug or a bug in testing methodology. Haven't had time to dig in further and likely won't in the near future, so opening this Jira to track.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gsmiller Greg Miller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: