Skip to content

Commit f96c1f1

Browse files
committed
When a node is leaving LocalDiscovery cluster, rerouting should be performed on the master node
1 parent d126558 commit f96c1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/elasticsearch/discovery/local/LocalDiscovery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public ClusterState execute(ClusterState currentState) {
220220
}
221221
// reroute here, so we eagerly remove dead nodes from the routing
222222
ClusterState updatedState = newClusterStateBuilder().state(currentState).nodes(newNodes).build();
223-
RoutingAllocation.Result routingResult = allocationService.reroute(newClusterStateBuilder().state(updatedState).build());
223+
RoutingAllocation.Result routingResult = master.allocationService.reroute(newClusterStateBuilder().state(updatedState).build());
224224
return newClusterStateBuilder().state(updatedState).routingResult(routingResult).build();
225225
}
226226
});

0 commit comments

Comments
 (0)