Skip to content

Comments

!context store lifecycle in DistributedActorContext; internal only#976

Merged
ktoso merged 7 commits intoapple:mainfrom
ktoso:wip-remove-lifecycle-storage-from-system
Jun 29, 2022
Merged

!context store lifecycle in DistributedActorContext; internal only#976
ktoso merged 7 commits intoapple:mainfrom
ktoso:wip-remove-lifecycle-storage-from-system

Conversation

@ktoso
Copy link
Member

@ktoso ktoso commented Jun 17, 2022

Resolves #926

By moving state associated with concrete actors, we decrease lock contention and allow each actor to store the additional state used for lifecycle API.

We do not expose the distributed actor context as user API, and it will only be ever accessed by the actor system at actor init and actor deinit and the actor itself via the LifecycleWatch protocol

@ktoso ktoso marked this pull request as draft June 17, 2022 10:53
@ktoso
Copy link
Member Author

ktoso commented Jun 17, 2022

(silly bugs remain, but will fix)

@ktoso
Copy link
Member Author

ktoso commented Jun 29, 2022

@swift-server-bot test this please

@ktoso ktoso force-pushed the wip-remove-lifecycle-storage-from-system branch from 486985c to 6c9ab67 Compare June 29, 2022 01:52
@ktoso ktoso force-pushed the wip-remove-lifecycle-storage-from-system branch from 6c9ab67 to 6b9bc96 Compare June 29, 2022 02:05
@ktoso
Copy link
Member Author

ktoso commented Jun 29, 2022

@swift-server-bot test this please

@ktoso
Copy link
Member Author

ktoso commented Jun 29, 2022

@swift-server-bot test this please

Not sure if this is caused by this PR, trying again to check

@ktoso ktoso marked this pull request as ready for review June 29, 2022 02:43
@ktoso
Copy link
Member Author

ktoso commented Jun 29, 2022

signal intercepting likes to flaky fail, but we're removing this anyway 🤔

@ktoso
Copy link
Member Author

ktoso commented Jun 29, 2022

@swift-server-bot test this please

@ktoso
Copy link
Member Author

ktoso commented Jun 29, 2022

Flaky failure #970

@ktoso ktoso merged commit 87c9239 into apple:main Jun 29, 2022
@ktoso ktoso deleted the wip-remove-lifecycle-storage-from-system branch June 29, 2022 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move storage of LifecycleWatch into DistributedActorContext

1 participant