Closes #36234
This commit is contained in:
parent
794303af73
commit
35c09adbe1
|
@ -1111,7 +1111,7 @@ public class IndexMetaData implements Diffable<IndexMetaData>, ToXContentFragmen
|
||||||
}
|
}
|
||||||
int numberOfReplicas = maybeNumberOfReplicas;
|
int numberOfReplicas = maybeNumberOfReplicas;
|
||||||
if (numberOfReplicas < 0) {
|
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);
|
int routingPartitionSize = INDEX_ROUTING_PARTITION_SIZE_SETTING.get(settings);
|
||||||
|
|
Loading…
Reference in New Issue