Merge pull request #19897 from Adebski/Adebski-join-new-incarnation-of-node-if-old-is-leaving-or-exiting

=clu #19859 Relaxed constraints on downing old incarnation of rejoining node
This commit is contained in:
Patrik Nordwall 2016-03-17 13:13:27 +01:00
commit 43000c6569
2 changed files with 4 additions and 2 deletions

View file

@ -496,7 +496,7 @@ private[cluster] class ClusterCoreDaemon(publisher: ActorRef) extends Actor with
// new node will retry join // new node will retry join
logInfo("New incarnation of existing member [{}] is trying to join. " + logInfo("New incarnation of existing member [{}] is trying to join. " +
"Existing will be removed from the cluster and then new member will be allowed to join.", m) "Existing will be removed from the cluster and then new member will be allowed to join.", m)
if (m.status != Down && m.status != Leaving && m.status != Exiting) if (m.status != Down)
downing(m.address) downing(m.address)
case None case None
// remove the node from the failure detector // remove the node from the failure detector

View file

@ -265,7 +265,9 @@ become a part of the cluster). To be able to move forward the state of the
``unreachable`` nodes must be changed. It must become ``reachable`` again or marked ``unreachable`` nodes must be changed. It must become ``reachable`` again or marked
as ``down``. If the node is to join the cluster again the actor system must be as ``down``. If the node is to join the cluster again the actor system must be
restarted and go through the joining process again. The cluster can, through the restarted and go through the joining process again. The cluster can, through the
leader, also *auto-down* a node after a configured time of unreachability.. leader, also *auto-down* a node after a configured time of unreachability. If new
incarnation of unreachable node tries to rejoin the cluster old incarnation will be
marked as ``down`` and new incarnation can rejoin the cluster without manual intervention.
.. note:: If you have *auto-down* enabled and the failure detector triggers, you .. note:: If you have *auto-down* enabled and the failure detector triggers, you
can over time end up with a lot of single node clusters if you don't put can over time end up with a lot of single node clusters if you don't put