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

TestPassageSelector#randomizedSanityCheck failure

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

      It seems like one of the passages can have an invalid range:

      java.lang.IndexOutOfBoundsException: start 58, end 63, length 61
      	at __randomizedtesting.SeedInfo.seed([81F11CA50D71B99C:75C437D3A11EEB96]:0)
      	at java.base/java.lang.AbstractStringBuilder.checkRange(AbstractStringBuilder.java:1805)
      	at java.base/java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:686)
      	at java.base/java.lang.StringBuilder.append(StringBuilder.java:211)
      	at org.apache.lucene.search.matchhighlight.PassageFormatter.format(PassageFormatter.java:98)
      	at org.apache.lucene.search.matchhighlight.PassageFormatter.format(PassageFormatter.java:85)
      	at org.apache.lucene.search.matchhighlight.TestPassageSelector.randomizedSanityCheck(TestPassageSelector.java:275)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      

      This reproduces with the random seed "-Dtests.seed=81F11CA50D71B99C".

      Attachments

        Activity

          People

            dweiss Dawid Weiss
            jtibshirani Julie Tibshirani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: