diff --git a/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java b/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java index b05a9253855..9a053384e93 100644 --- a/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java +++ b/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java @@ -179,8 +179,6 @@ public class AllocationService extends AbstractComponent { } private boolean reroute(RoutingAllocation allocation) { - Iterable dataNodes = allocation.nodes().dataNodes().values(); - boolean changed = false; // first, clear from the shards any node id they used to belong to that is now dead changed |= deassociateDeadNodes(allocation);