File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
modules/elasticsearch/src/main/java/org/elasticsearch/discovery/zen Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -454,9 +454,10 @@ private ClusterState handleJoinRequest(final DiscoveryNode node) {
454
454
clusterService .submitStateUpdateTask ("zen-disco-receive(from node[" + node + "])" , new ClusterStateUpdateTask () {
455
455
@ Override public ClusterState execute (ClusterState currentState ) {
456
456
if (currentState .nodes ().nodeExists (node .id ())) {
457
- // no change, the node already exists in the cluster
457
+ // the node already exists in the cluster
458
458
logger .warn ("received a join request for an existing node [{}]" , node );
459
- return currentState ;
459
+ // still send a new cluster state, so it will be re published and possibly update the other node
460
+ return ClusterState .builder ().state (currentState ).build ();
460
461
}
461
462
return newClusterStateBuilder ().state (currentState ).nodes (currentState .nodes ().newNode (node )).build ();
462
463
}
You can’t perform that action at this time.
0 commit comments