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

fix TestLRUQueryCache.testCachingAccountableQuery failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • core/search
    • None
    • New

    Description

      I saw this build failure: https://jenkins.thetaphi.de/job/Lucene-9.x-Linux/348/
      with following stack trace

      java.lang.AssertionError: expected:<1388880.0> but was:<1544976.0>
      	at __randomizedtesting.SeedInfo.seed([F7826B1EB37D545A:995B6ED46A95D1A0]:0)
      	at org.junit.Assert.fail(Assert.java:89)
      	at org.junit.Assert.failNotEquals(Assert.java:835)
      	at org.junit.Assert.assertEquals(Assert.java:577)
      	at org.junit.Assert.assertEquals(Assert.java:701)
      	at org.apache.lucene.search.TestLRUQueryCache.testCachingAccountableQuery(TestLRUQueryCache.java:570)
      	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:566)
      	at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1754)
      	at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:942)
      	at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:978)
      	at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:992)
      ...
      NOTE: reproduce with: gradlew test --tests TestLRUQueryCache.testCachingAccountableQuery -Dtests.seed=F7826B1EB37D545A -Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=ckb-IR -Dtests.timezone=Africa/Dakar -Dtests.asserts=true -Dtests.file.encoding=UTF-8 

      It does not reproduce on my laptop on current main branch, but since the test is comparing an estimation with a 10% slack, it can fail for sure sometime.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zhai7631 Patrick Zhai
              Votes:
              0 Vote for this issue
              Watchers:
              2 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