-
Notifications
You must be signed in to change notification settings - Fork 784
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 timeout locks #6048
Remove timeout locks #6048
Conversation
We should also hide and deprecate the I was going to block the removal of the timeouts on adding deadlock detection, but it seems like getting https://github.com/BurtonQin/lockbud It depends on Rust Nightly, so it will need to be continually updated as we increase our MSRV, and might break in surprising ways (my experience with writing lints pinned to nightly) |
944cccd
to
1c9945b
Compare
@dapplion a few CI failures to fix |
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at b949db0 |
Issue Addressed
Chatting with @michaelsproul he noted that locks with timeouts can kill liveness, and do more harm than good. If an operation takes more than the timeout to acquire the lock, erroring causes that operation to be retried and fail again.
I recall that timeouts helped in the past with deadlocks. Looks like this thread is well mitigated now?
Proposed Changes
Replace these three timeout rw locks with rw locks