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

BUGFIX: avoid reaper race by getting and deleting stale pools atomically #207

Closed
wants to merge 3 commits into from

Conversation

hageshtrem
Copy link

It is possible to launch two or more reapers at the same time. They get the IDs of the dead pools and their associated jobs and start to release the locks. As a result, one lock can be released (decremented) several times. PR combines operations by getting IDs and removing those IDs from the set in one atomic operation.

@hageshtrem hageshtrem closed this Jun 6, 2022
@hageshtrem hageshtrem deleted the reaper-race-fix branch July 7, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant