-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix unclean ShardingConsumerControllerImpl shutdown #7714
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 unclean ShardingConsumerControllerImpl shutdown #7714
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
if (ProducerControllers.Count == 0 && ConsumerControllers.Count == 0) | ||
{ | ||
_log.Debug("ShardingConsumerController terminated."); | ||
Context.Stop(Self); | ||
} | ||
else | ||
{ | ||
Become(ShuttingDown()); | ||
} |
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.
Add a "shutting down" state to the actor, attempt cleanup before performing Context.Stop(Self)
… of github.com:Arkatufus/akka.net into akkadotnet#7713-Fix-Sharding.Delivery-unclean-shutdown
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 #7713
Changes
Add clean shutdown code to
ShardingConsumerControlerImpl