From ffc7f3e12b28208dc63e8eb155a4a59394726ca9 Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 12 Jun 2011 14:39:44 +0300 Subject: [PATCH] make sure to initialize the routing table version with the cluster state version as well --- .../src/main/java/org/elasticsearch/gateway/GatewayService.java | 1 + 1 file changed, 1 insertion(+) 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());