-
Notifications
You must be signed in to change notification settings - Fork 78
=receptionist lookup() trying to cast stub actor #1032
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
=receptionist lookup() trying to cast stub actor #1032
Conversation
|
Resolves rdar://97586760 |
| // self.instrumentation.listingPublished(key: message._key, subscribers: 1, registrations: registrations.count) // TODO(distributed): make the instrumentation calls compatible with distributed actor based types | ||
| let guests = Set(registrations.compactMap { versioned in | ||
| versioned.actor.underlying as? Guest | ||
| try? Guest.resolve(id: versioned.actor.underlying.id as! ActorID, using: self.actorSystem) |
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.
I'll try to see if we can store the right one right away instead.
| typealias ActorSystem = ClusterSystem | ||
|
|
||
| // TODO: this is just to prevent a DI crash because of enums without cases and Codable | ||
| distributed func _noop() {} |
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.
wohoo, compiler no more crashing on empty DA 🥳
|
Sigh always one flaky test somewhere. Our timing is too aggressive for downing/joining, e.g. this node still was joining while we wanted it to be down in #1034 I'll spend this week tracking them all down 💯 |
2c14c41 to
e6f2d7f
Compare
Receptionist would bug out when trying to lookup() due to a wrongly implemented cast.
I'll want to enable all the other tests here and spend more time hardening for our next milestone.