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

Wait for migrating activations to become active or terminated #8527

Merged
merged 2 commits into from Jul 6, 2023

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Jul 6, 2023

There is some test flakiness caused by a race in the grain migration process. This PR fixes that race by polling the grains to make sure that they enter an active or terminal state before returning from migration.

The second commit also fixes a test case issue. The issue is that telling a grain to migrate by calling MigrateOnIdle does not guarantee that subsequent messages will be enqueued instead of executed on the activation (i.e, migration is async). The fix is to check that we're dealing with a new activation before continuing with the test.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond merged commit b6525b5 into dotnet:main Jul 6, 2023
19 checks passed
@ReubenBond ReubenBond deleted the fix/migration-race branch July 6, 2023 19:17
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
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.

None yet

1 participant