Skip to content

Commit

Permalink
+ShardLimitValidatorTests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnestor committed Jul 18, 2024
1 parent c69c0ca commit 6232859
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.elasticsearch.cluster.node.DiscoveryNodeUtils;
import org.elasticsearch.cluster.node.DiscoveryNodes;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.ReferenceDocs;
import org.elasticsearch.cluster.shards.ShardCounts;
import org.elasticsearch.common.ValidationException;
import org.elasticsearch.common.settings.ClusterSettings;
Expand Down Expand Up @@ -79,7 +80,8 @@ private void testOverShardLimit(CheckShardLimitMethod targetMethod, String group
+ maxShards
+ "] maximum "
+ group
+ " shards open",
+ " shards open; for more information, see "
+ ReferenceDocs.MAX_SHARDS_PER_NODE,
ShardLimitValidator.errorMessageFrom(shardLimitsResult)
);
assertEquals(shardLimitsResult.maxShardsInCluster(), maxShards);
Expand Down Expand Up @@ -151,7 +153,9 @@ public void testValidateShardLimitOpenIndices() {
+ maxShards
+ "] maximum "
+ group
+ " shards open;",
+ " shards open; for more information, see "
+ ReferenceDocs.MAX_SHARDS_PER_NODE
+ ";",
exception.getMessage()
);
}
Expand Down Expand Up @@ -179,7 +183,9 @@ public void testValidateShardLimitUpdateReplicas() {
+ shardsPerNode * nodesInCluster
+ "] maximum "
+ group
+ " shards open;",
+ " shards open; for more information, see "
+ ReferenceDocs.MAX_SHARDS_PER_NODE
+ ";",
exception.getMessage()
);
}
Expand Down

0 comments on commit 6232859

Please sign in to comment.