opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.81k stars 1.82k forks source link

[BUG] InternalEngineTests.testForceMergeWithSoftDeletesRetentionAndRecoverySource failure #5364

Closed andrross closed 5 months ago

andrross commented 1 year ago

This is reproducible:

./gradlew ':server:test' --tests "org.opensearch.index.engine.InternalEngineTests.testForceMergeWithSoftDeletesRetentionAndRecoverySource" -Dtests.seed=1766E6A3B733A7AA -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=lv-LV -Dtests.timezone=Asia/Kathmandu -Druntime.java=19

org.opensearch.index.engine.InternalEngineTests > testForceMergeWithSoftDeletesRetentionAndRecoverySource FAILED
    java.lang.AssertionError: 
    Expected: a collection with size <5>
         but: collection size was <6>
        at __randomizedtesting.SeedInfo.seed([1766E6A3B733A7AA:9169E6934A38144D]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.junit.Assert.assertThat(Assert.java:930)
        at org.opensearch.index.engine.InternalEngineTests.testForceMergeWithSoftDeletesRetentionAndRecoverySource(InternalEngineTests.java:1907)

https://build.ci.opensearch.org/job/gradle-check/7223/consoleFull

andrross commented 1 year ago

Another instance here: https://build.ci.opensearch.org/job/gradle-check/10777

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.index.engine.InternalEngineTests.testForceMergeWithSoftDeletesRetentionAndRecoverySource" -Dtests.seed=C75D09DC5A0C3458 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ms -Dtests.timezone=Europe/Bucharest -Druntime.java=19

org.opensearch.index.engine.InternalEngineTests > testForceMergeWithSoftDeletesRetentionAndRecoverySource FAILED
    java.lang.AssertionError: 
    Expected: a collection with size <3>
         but: collection size was <5>
        at __randomizedtesting.SeedInfo.seed([C75D09DC5A0C3458:415209ECA70787BF]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.junit.Assert.assertThat(Assert.java:930)
        at org.opensearch.index.engine.InternalEngineTests.testForceMergeWithSoftDeletesRetentionAndRecoverySource(InternalEngineTests.java:1908)
peternied commented 7 months ago