فهرست منبع

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
Armin Braun 6 سال پیش
والد
کامیت
f99096e667
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexStateServiceTests.java

+ 1 - 1
server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexStateServiceTests.java

@@ -333,7 +333,7 @@ public class MetaDataIndexStateServiceTests extends ESTestCase {
     }
 
     public void testValidateShardLimit() {
-        int nodesInCluster = randomIntBetween(2,100);
+        int nodesInCluster = randomIntBetween(2, 90);
         ClusterShardLimitIT.ShardCounts counts = forDataNodeCount(nodesInCluster);
         Settings clusterSettings = Settings.builder()
             .put(MetaData.SETTING_CLUSTER_MAX_SHARDS_PER_NODE.getKey(), counts.getShardsPerNode())