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

Remove Bucket.TryCancel and use Bucket.TryRemove instead #3399

Merged

Conversation

benjaminpetit
Copy link
Member

Fix for #3165 and #3352

When an Activation.ScanAll is called, we do not remove the ActivationData from the bucket, instead we set the value to null, that can cause NullReferenceException when we iterate again the ActivationData from the bucket.

I removed completely the Bucket.TryCancel method and merged the logic in Bucket.TryRemove. I am not sure what was the idea behind setting this to null instead of removing it (freeing some memory when iterating on the bucket?), but I don't think it was necessary.

@sergeybykov sergeybykov merged commit 6687ab8 into dotnet:master Sep 13, 2017
sergeybykov pushed a commit to sergeybykov/orleans that referenced this pull request Sep 29, 2017
@benjaminpetit benjaminpetit deleted the fix-remove-activationdata-bucket branch March 15, 2018 16:55
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 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.

3 participants