Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Flaky test ClusterShardLimitIT.testCreateIndexWithMaxClusterShardSetting #6287

Closed
ashking94 opened this issue Feb 10, 2023 · 3 comments
Assignees
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run

Comments

@ashking94
Copy link
Member

Describe the bug

Error Message
java.lang.AssertionError: MaxShardPerCluster 3 should be greater than or equal to MaxShardPerNode 1000
Stacktrace
java.lang.AssertionError: MaxShardPerCluster 3 should be greater than or equal to MaxShardPerNode 1000
	at __randomizedtesting.SeedInfo.seed([CF6070B40FF53C63:8586810AA2ABFADB]:0)
	at org.junit.Assert.fail(Assert.java:89)
	at org.opensearch.cluster.shards.ClusterShardLimitIT.setMaxShardLimit(ClusterShardLimitIT.java:750)
	at org.opensearch.cluster.shards.ClusterShardLimitIT.testCreateIndexWithMaxClusterShardSetting(ClusterShardLimitIT.java:259)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)

To Reproduce
Build failure - https://build.ci.opensearch.org/job/gradle-check/11004/testReport/junit/org.opensearch.cluster.shards/ClusterShardLimitIT/testCreateIndexWithMaxClusterShardSetting/

Auto cut - #6286

Expected behavior
The test should pass always.

@ashking94 ashking94 added bug Something isn't working untriaged flaky-test Random test failure that succeeds on second run and removed untriaged labels Feb 10, 2023
@ashking94
Copy link
Member Author

@RS146BIJAY Looks like this has come with #6143. Let's fix it or mute it.

@RS146BIJAY
Copy link
Contributor

@ashking94 Thanks for reporting. I think this may have come from here. I think I am still using some random value in the test case. Will fix the test case.

@andrross
Copy link
Member

Another failure: #8682 (comment)

REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.cluster.shards.ClusterShardLimitIT.testCreateIndexWithMaxClusterShardSetting" -Dtests.seed=99AA0399238084FC -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=sq -Dtests.timezone=Egypt -Druntime.java=20

org.opensearch.cluster.shards.ClusterShardLimitIT > testCreateIndexWithMaxClusterShardSetting FAILED
    java.lang.AssertionError: MaxShardPerCluster 2 should be greater than or equal to MaxShardPerNode 1000
        at __randomizedtesting.SeedInfo.seed([99AA0399238084FC:D34CF2278EDE4244]:0)
        at org.junit.Assert.fail(Assert.java:89)
        at org.opensearch.cluster.shards.ClusterShardLimitIT.setMaxShardLimit(ClusterShardLimitIT.java:750)
        at org.opensearch.cluster.shards.ClusterShardLimitIT.testCreateIndexWithMaxClusterShardSetting(ClusterShardLimitIT.java:259)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run
Projects
None yet
Development

No branches or pull requests

3 participants