Skip to content

Commit f9055ec

Browse files
committed
index.recovery.initial_shards is not being taken into account, closes elastic#1623.
1 parent 2e0c7a5 commit f9055ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/gateway/local/LocalGatewayAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public class LocalGatewayAllocator extends AbstractComponent implements GatewayA
151151
int requiredAllocation = 1;
152152
try {
153153
IndexMetaData indexMetaData = routingNodes.metaData().index(shard.index());
154-
String initialShards = indexMetaData.settings().get("recovery.initial_shards", this.initialShards);
154+
String initialShards = indexMetaData.settings().get("index.recovery.initial_shards", this.initialShards);
155155
if ("quorum".equals(initialShards)) {
156156
if (indexMetaData.numberOfReplicas() > 1) {
157157
requiredAllocation = ((1 + indexMetaData.numberOfReplicas()) / 2) + 1;

0 commit comments

Comments
 (0)