-
Notifications
You must be signed in to change notification settings - Fork 111
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
Ensure thread-safety in cleaning up inactive BatchedCommand
instances
#7251
Comments
race of what with what? "active" how? note : looking at the code -- the yet to analyze what PR suggest - I would expect some locking around operations which set/update |
That is actually done in the |
This is a follow-up to issue #6179.
The current implementation of #6197 contains a race condition that could lead to deleting the runner from an active
BatchedCommand
-instance.Also, from within
BatchedCommand
instance- and class-code, we can only clean up elements internal to BatchedCommand, i.e. we can remove runner that are not actively used, In 0.18.0, there might be a problem with identifying all instances because elements are removed from the instance dictionary.I would like to question the necessity of this specific garbage collection. If we want to keep it, I think it has to be modified to ensure that no runner is removed from an active instance. I will open a PR linked to this issue that uses locking to prevent the race condition mentioned above.
The text was updated successfully, but these errors were encountered: