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

Improve ActivationData shutdown process #9018

Merged
merged 3 commits into from
May 21, 2024

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented May 21, 2024

When migrating, update the cache speculatively before performing the migration. This reduces the window where the local silo will route messages to the current instance instead of to the new instance.
Set GrainInstance to null in DisposeAsync(), not UnregisterMessageTarget().
Call DisposeAsync() before UnregisterMessageTarget()

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond force-pushed the fix/activation-shutdown-order branch from 2996473 to bb8a239 Compare May 21, 2024 22:24
@ReubenBond ReubenBond force-pushed the fix/activation-shutdown-order branch from bb8a239 to 270b9c2 Compare May 21, 2024 22:57
@ReubenBond ReubenBond merged commit 3d7343e into dotnet:main May 21, 2024
18 checks passed
@ReubenBond ReubenBond deleted the fix/activation-shutdown-order branch May 21, 2024 23:54
@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant