-
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
Akka.Router: automatically unpack IScheduledTellMsg
when being handled through a router
#7249
Akka.Router: automatically unpack IScheduledTellMsg
when being handled through a router
#7249
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.
Detailed my changes
{ | ||
var allRoutees = await router.Ask<Routees>(GetRoutees.Instance); | ||
allRoutees.Members.Count().ShouldBeGreaterThan(0); | ||
}); |
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.
You can't target a /temp
actor via ActorSelection
, so I had to go through some extra steps in order to get the FutureActorRef
added to the BroadcastGroup
router here.
Router.Route(envelope.Message, envelope.Sender); | ||
{ | ||
// Bugfix: https://github.com/akkadotnet/akka.net/issues/7247 | ||
if(envelope.Message is IScheduledTellMsg scheduledTellMsg) |
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.
This is the real fix here - and I describe the root of problems here on the issue itself #7247 (comment)
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.
Technically this change means that certain messages will now show up in Phobos traces if they're sent through a router via the scheduler. I am fine with that.
IScheduledTellMsg
when being handled through a router
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
Changes
Working on reproducing #7247
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
IScheduledTellMsg
results in serialization error #7247