Replaced the word 'shards' with 'replicas' in an error message. (#36234) (#36275)

Closes #36234
This commit is contained in:
Alexis Wilke 2019-01-01 07:37:15 -08:00 committed by Armin Braun
parent 794303af73
commit 35c09adbe1
1 changed files with 1 additions and 1 deletions

View File

@ -1111,7 +1111,7 @@ public class IndexMetaData implements Diffable<IndexMetaData>, ToXContentFragmen
}
int numberOfReplicas = maybeNumberOfReplicas;
if (numberOfReplicas < 0) {
throw new IllegalArgumentException("must specify non-negative number of shards for index [" + index + "]");
throw new IllegalArgumentException("must specify non-negative number of replicas for index [" + index + "]");
}
int routingPartitionSize = INDEX_ROUTING_PARTITION_SIZE_SETTING.get(settings);