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

Fix bug in RedisGrainDirectory.Unregister #7362

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

benjaminpetit
Copy link
Member

@benjaminpetit benjaminpetit commented Oct 28, 2021

When removing an entry from the directory, we should check that the ActivationId matches, to avoid race conditions.

Previously, for the redis directory, we checked the whole GrainAddress passed in parameters matches the one stored. Unfortunately, sometimes the GrainAddress.MembershipVersion isn't populated: in this case, the entry will not be deleted.

Fix #7359

Microsoft Reviewers: Open in CodeFlow

@ThiagoT1
Copy link
Contributor

ThiagoT1 commented Nov 9, 2021

Hello, there!

Does this or a similar issue affect 3.4.2?

Thanks!

@benjaminpetit
Copy link
Member Author

I don't think so, it's the addition of the MembershipVersion that caused this bug

@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.

Exception when grain method is invoked after grain has been previously deactivated using DeactivateOnIdle()
3 participants