Handle CoordinatedShutdown exiting-completed when not joined, #26832
* assertion failed: Nodes not part of cluster have marked the Gossip as seen * trying to mark the Gossip as seen before it has joined, which may happen if CoordinatedShutdown is running before the node has joined
This commit is contained in:
parent
7b59c0c785
commit
a77db34f8f
1 changed files with 27 additions and 24 deletions
|
|
@ -826,6 +826,8 @@ private[cluster] class ClusterCoreDaemon(publisher: ActorRef, joinConfigCompatCh
|
||||||
logInfo("Exiting completed")
|
logInfo("Exiting completed")
|
||||||
// ExitingCompleted sent via CoordinatedShutdown to continue the leaving process.
|
// ExitingCompleted sent via CoordinatedShutdown to continue the leaving process.
|
||||||
exitingTasksInProgress = false
|
exitingTasksInProgress = false
|
||||||
|
// status Removed also before joining
|
||||||
|
if (membershipState.selfMember.status != MemberStatus.Removed) {
|
||||||
// mark as seen
|
// mark as seen
|
||||||
membershipState = membershipState.seen()
|
membershipState = membershipState.seen()
|
||||||
assertLatestGossip()
|
assertLatestGossip()
|
||||||
|
|
@ -854,6 +856,7 @@ private[cluster] class ClusterCoreDaemon(publisher: ActorRef, joinConfigCompatCh
|
||||||
}
|
}
|
||||||
case None => // no leader
|
case None => // no leader
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
shutdown()
|
shutdown()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue