-
Notifications
You must be signed in to change notification settings - Fork 47
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 deadlock in test_shutdown_with_sys_exit_at_pickle #438
Conversation
I cannot reproduce the race condition on main. |
So 17ebf79 managed to reproduce the problem (by deadlocking at a different place but the warning is still there) with a high probability. The probability of triggering the deadlock goes down if we remove the loop in the test. We need to find a balance between catching race conditions with a high probability and test time. |
5 iterations in both So let's try to see if the proposed change of #437 (comment) can help resolve this problem. |
Victory! c4217e4 fixed the problem! 🥳 |
Note: the tests are still running in less than 8 minutes despite the changes in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, weird that we never got this one before!
Thanks for the reproducer and the fix, it makes a lot of sense.
LGTM
Trying to reproduce #437 in the current
master
branch.EDIT: reproduced at d833e8f and fixed by c4217e4.
Fixes #437.