Skip to content

Commit f99096e

Browse files
Fix MetaDataIndexStateServiceTests.testValidateShardLimit (#47352)
The upper bound of nodes accepted by the method that's failing here is `90`, not `100` -> adjusted the limit in the test accordingly. Closes #47351
1 parent 26fef85 commit f99096e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexStateServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public void testAddIndexClosedBlocksReusesBlocks() {
333333
}
334334

335335
public void testValidateShardLimit() {
336-
int nodesInCluster = randomIntBetween(2,100);
336+
int nodesInCluster = randomIntBetween(2, 90);
337337
ClusterShardLimitIT.ShardCounts counts = forDataNodeCount(nodesInCluster);
338338
Settings clusterSettings = Settings.builder()
339339
.put(MetaData.SETTING_CLUSTER_MAX_SHARDS_PER_NODE.getKey(), counts.getShardsPerNode())

0 commit comments

Comments
 (0)