diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/gateway/GatewayService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/gateway/GatewayService.java index b4ec712debf..7bdbf69a04a 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/gateway/GatewayService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/gateway/GatewayService.java @@ -267,6 +267,7 @@ public class GatewayService extends AbstractLifecycleComponent i routingTableBuilder.add(indexRoutingBuilder); } } + routingTableBuilder.version(recoveredState.version()); // now, reroute RoutingAllocation.Result routingResult = shardsAllocation.reroute(newClusterStateBuilder().state(updatedState).routingTable(routingTableBuilder).build());