-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing HandOverDone
handler in ClusterSingletonManager
#7230
Fix missing HandOverDone
handler in ClusterSingletonManager
#7230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self review
return Stay(); | ||
} | ||
else if (e.FsmEvent is MemberDowned memberDowned && e.StateData is OldestData od && memberDowned.Member.UniqueAddress.Equals(_cluster.SelfUniqueAddress)) | ||
switch (e.FsmEvent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert if..else structure to switch..case (auto-refactor, no code change)
case HandOverDone: | ||
// no-op, the HandOverDone message can be sent multiple times if HandOverToMe | ||
// was sent multiple times (retried) | ||
// https://github.com/akka/akka/pull/29216/files#r440062592 | ||
return Stay(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actual fix, do a no-op when extra HandOverDone
is received
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #6973 (comment)
Changes
Add
HandOverDone
message handler to ClusterSingletonManager Oldest state