-
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
close #6295 - set default PoolRouter SupervisorStrategy to Restart #6366
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.
LGTM
This will also need to be ported to v1.5 @Arkatufus |
|
OK |
@Aaronontheweb fixed the unit test, can you check the code? |
|
||
supervisor.Tell(new RoundRobinPool(3).Props(Props.Create(() => new RestartActor(TestActor)))); | ||
var router = Sys.ActorOf(new RoundRobinGroup(routes.Select(a => a.Path.ToString())).Props()); |
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.
@Arkatufus this needs to be a RoundRobinPool
router
… Restart (akkadotnet#6366) * close akkadotnet#6295 - set default PoolRouter SupervisorStrategy to Restart * use the `SupervisionStrategy.DefaultStrategy` * Fix unit test * Change unit test to use RoundRobinPool router (cherry-picked from ffd9a9e)
) * close #6295 - set default PoolRouter SupervisorStrategy to Restart (#6366) * close #6295 - set default PoolRouter SupervisorStrategy to Restart * use the `SupervisionStrategy.DefaultStrategy` * Fix unit test * Change unit test to use RoundRobinPool router (cherry-picked from ffd9a9e) * Fix actor telemetry unit test --------- Co-authored-by: Aaron Stannard <aaron@petabridge.com>
Changes
Fixes #6295 - this fixes a very old bug in Akka.NET where any time a routee on a
Pool
router restarted, the default supervision directive on the router was set toEscalate
which would cause the router itself to restart and kill all of the routees in the process. I believe this was done as a result of misunderstanding what Escalate does and how it works. We now know better and this sets the supervision directive toRestart
, which is the safe default we use for everything else.Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
Directive.Escalate
by default when supervising routees - this causes unintended consequences #6295