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 KeyNotFoundException in DelegatingSupervisorStrategy #7438

Merged

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Dec 24, 2024

Changes

close #7437

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

@Aaronontheweb Aaronontheweb added the akka-testkit Akka.NET Testkit issues label Dec 24, 2024
@Aaronontheweb Aaronontheweb changed the title fix KeyNotFoundException in DelegatingSupervisorStrategy fix KeyNotFoundException in DelegatingSupervisorStrategy Dec 24, 2024
modifiers: null);
var result = (Directive) handleMethod.Invoke(childDelegate, new object[]{ child, exception });
return result;
if(Delegates.TryGetValue(child, out var childDelegate))
Copy link
Member Author

Choose a reason for hiding this comment

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

check if the child IActorRef has a strategy specified at all - if not, fall back to the default.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) December 24, 2024 14:39
@Aaronontheweb Aaronontheweb merged commit 400e7cb into akkadotnet:dev Dec 24, 2024
9 of 12 checks passed
@Aaronontheweb Aaronontheweb deleted the 7437-DelegatingSupervisorStrategy branch December 24, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-testkit Akka.NET Testkit issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Akka.TestKit: DelegatingSupervisorStrategy KeyNotFoundException
1 participant