Skip to content
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

Conversation

Arkatufus
Copy link
Contributor

Fixes #6973 (comment)

Changes

Add HandOverDone message handler to ClusterSingletonManager Oldest state

Copy link
Contributor Author

@Arkatufus Arkatufus left a 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)
Copy link
Contributor Author

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)

Comment on lines +1225 to +1229
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();
Copy link
Contributor Author

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

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) June 5, 2024 18:38
@Aaronontheweb Aaronontheweb merged commit 5a2818f into akkadotnet:dev Jun 5, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Akka.Cluster.Sharding: duplicate shards / entities
2 participants