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 race in shutdown WorkItemGroups #6785

Merged

Conversation

ReubenBond
Copy link
Member

There is a minute chance of hitting a race in WorkItemGroup when a task is enqueued between the time the dequeue lock in Enqueue is exited and the time the finally lock is entered, if the WorkItemGroup is in a shutdown state.

Found by inspection. I'm not sure that this has ever been hit, it's a very minor case.

The bug was introduced when I changed WorkItemGroup from denying execution after shutdown to allowing it (with a warning/error log).

@benjaminpetit benjaminpetit merged commit 9d1d0f8 into dotnet:master Oct 19, 2020
benjaminpetit pushed a commit to benjaminpetit/orleans that referenced this pull request Dec 10, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 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

2 participants