Skip to content

Commit

Permalink
(Err>Doc) Max Shards Per Node
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnestor committed Jul 17, 2024
1 parent 870c3ca commit 52f5acd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.metadata.Metadata;
import org.elasticsearch.common.Priority;
import org.elasticsearch.common.ReferenceDocs;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.ByteSizeUnit;
import org.elasticsearch.index.IndexVersion;
Expand Down Expand Up @@ -152,7 +153,8 @@ public void testIncreaseReplicasOverLimit() {
+ firstShardCount
+ "]/["
+ dataNodes * shardsPerNode
+ "] maximum normal shards open;";
+ "] maximum normal shards open; for more information see "
+ ReferenceDocs.MAX_SHARDS_PER_NODE;
assertEquals(expectedError, e.getMessage());
}
Metadata clusterState = clusterAdmin().prepareState().get().getState().metadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public enum ReferenceDocs {
SNAPSHOT_REPOSITORY_ANALYSIS,
S3_COMPATIBLE_REPOSITORIES,
LUCENE_MAX_DOCS_LIMIT,
MAX_SHARDS_PER_NODE,
// this comment keeps the ';' on the next line so every entry above has a trailing ',' which makes the diff for adding new links cleaner
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
"NETWORK_BINDING_AND_PUBLISHING": "modules-network.html#modules-network-binding-publishing",
"SNAPSHOT_REPOSITORY_ANALYSIS": "repo-analysis-api.html",
"S3_COMPATIBLE_REPOSITORIES": "repository-s3.html#repository-s3-compatible-services",
"LUCENE_MAX_DOCS_LIMIT": "size-your-shards.html#troubleshooting-max-docs-limit"
"LUCENE_MAX_DOCS_LIMIT": "size-your-shards.html#troubleshooting-max-docs-limit",
"MAX_SHARDS_PER_NODE": "size-your-shards.html#_this_action_would_add_x_total_shards_but_this_cluster_currently_has_yz_maximum_shards_open"
}

0 comments on commit 52f5acd

Please sign in to comment.