Skip to content

Conversation

@ktoso
Copy link
Member

@ktoso ktoso commented Jul 26, 2022

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.

@ktoso
Copy link
Member Author

ktoso commented Jul 26, 2022

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)
Copy link
Member Author

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() {}
Copy link
Member Author

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 🥳

@ktoso ktoso changed the title =receptionist rdar://97586760 lookup() trying to cast stub actor =receptionist lookup() trying to cast stub actor Jul 26, 2022
@ktoso
Copy link
Member Author

ktoso commented Jul 26, 2022

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 💯

@ktoso ktoso force-pushed the wip-distributed-receptionist-lookup-cast branch from 2c14c41 to e6f2d7f Compare July 26, 2022 11:47
@ktoso ktoso requested a review from yim-lee July 26, 2022 11:48
@ktoso ktoso merged commit 28c0e54 into apple:main Jul 27, 2022
@ktoso ktoso deleted the wip-distributed-receptionist-lookup-cast branch July 27, 2022 02:26
@ktoso ktoso added this to the 1.0.0-beta.2 milestone Jul 27, 2022
@ktoso ktoso added kind/bug Feature doesn't work as expected. t:receptionist labels Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Feature doesn't work as expected. t:receptionist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants