use right youngest when moving to Up, #23582
* also confirm TakeOverFromMe when singleton already in oldest state
This commit is contained in:
parent
1e4e7cbba2
commit
cb08535e7d
5 changed files with 19 additions and 11 deletions
|
|
@ -686,6 +686,11 @@ class ClusterSingletonManager(
|
|||
case Event(HandOverToMe, OldestData(singleton, singletonTerminated)) ⇒
|
||||
gotoHandingOver(singleton, singletonTerminated, Some(sender()))
|
||||
|
||||
case Event(TakeOverFromMe, _) ⇒
|
||||
// already oldest, so confirm and continue like that
|
||||
sender() ! HandOverToMe
|
||||
stay
|
||||
|
||||
case Event(Terminated(ref), d @ OldestData(singleton, _)) if ref == singleton ⇒
|
||||
stay using d.copy(singletonTerminated = true)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue