-
Notifications
You must be signed in to change notification settings - Fork 232
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: orphan block pool deadlock #2074
Conversation
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.
I'm OK with the fix. Just raise a question: how to avoid the similar bugs in the future?
Since every function requires the lock of
|
I think it can be detected by feature flag |
https://github.com/tokio-rs/loom may help here to reproduce the bug deterministically. |
bors r=doitian,zhangsoledad |
Build succeeded: |
2074: fix: orphan block pool deadlock r=doitian,zhangsoledad a=quake resolved potential deadlock in `OrphanBlockPool` and a unit test which simulates deadlocking was added also. 2084: feat: Expose methods so we can use CKB as a library r=doitian,yangby-cryptape a=xxuejie Co-authored-by: quake <[email protected]> Co-authored-by: Xuejie Xiao <[email protected]>
resolved potential deadlock in
OrphanBlockPool
and a unit test which simulates deadlocking was added also.