Skip to content

[BUG] Flaky test ClusterShardLimitIT.testCreateIndexWithMaxClusterShardSetting #6287

@ashking94

Description

@ashking94

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingflaky-testRandom test failure that succeeds on second run

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions