OpenSearch icon indicating copy to clipboard operation
OpenSearch copied to clipboard

[BUG] DecommissionControllerTests.testTimesOut flaky

Open dblock opened this issue 3 years ago • 3 comments

Describe the bug

https://github.com/opensearch-project/OpenSearch/pull/5191 https://build.ci.opensearch.org/job/gradle-check/6747/

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.cluster.decommission.DecommissionControllerTests.testTimesOut" -Dtests.seed=AF2F88C09A211CBA -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=en-ZA -Dtests.timezone=Asia/Ashgabat -Druntime.java=17

org.opensearch.cluster.decommission.DecommissionControllerTests > testTimesOut FAILED
    java.lang.AssertionError
        at org.junit.Assert.fail(Assert.java:87)
        at org.junit.Assert.assertTrue(Assert.java:42)
        at org.junit.Assert.assertTrue(Assert.java:53)
        at org.opensearch.cluster.decommission.DecommissionControllerTests.testTimesOut(DecommissionControllerTests.java:234)

dblock avatar Nov 10 '22 16:11 dblock

This was fixed but not backported: #4683

I'll do the backport now.

andrross avatar Nov 10 '22 17:11 andrross

  • Reproduced in https://github.com/opensearch-project/OpenSearch/pull/11957, see logs
java.lang.AssertionError: Expected onFailure to be called
Expected: not null
     but: was null
	at __randomizedtesting.SeedInfo.seed([95FCFD6AF5DCEFB:6FAB526F364153D7]:0)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
	at org.opensearch.cluster.decommission.DecommissionControllerTests.testTimesOut(DecommissionControllerTests.java:196)
...

Repro instruction

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.cluster.decommission.DecommissionControllerTests.testTimesOut" -Dtests.seed=95FCFD6AF5DCEFB -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ar-SA -Dtests.timezone=America/Puerto_Rico -Druntime.java=21

peternied avatar Feb 13 '24 13:02 peternied

Taking a look.

Pranshu-S avatar May 08 '24 17:05 Pranshu-S