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

[Merged by Bors] - Drop write lock before async IO operations #2490

Closed
wants to merge 2 commits into from
Closed

[Merged by Bors] - Drop write lock before async IO operations #2490

wants to merge 2 commits into from

Conversation

galibey
Copy link
Contributor

@galibey galibey commented Jul 19, 2022

Write lock guard shouldn't outlive await on async IO operations because under high load awaiting time could be significant, and during all that time, the lock guard won't be dropped and will prevent the system from any progress.

@galibey galibey requested a review from sehz July 19, 2022 14:18
@sehz sehz added this to the 0.9.32 milestone Jul 19, 2022
Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice finding!

@sehz
Copy link
Contributor

sehz commented Jul 19, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jul 19, 2022
Write lock guard shouldn't outlive `await` on async IO operations because under high load awaiting time could be significant, and during all that time, the lock guard won't be dropped and will prevent the system from any progress.
@bors
Copy link

bors bot commented Jul 19, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title Drop write lock before async IO operations [Merged by Bors] - Drop write lock before async IO operations Jul 19, 2022
@bors bors bot closed this Jul 19, 2022
@galibey galibey deleted the bugfix/fix-hourly-tests branch July 19, 2022 17:53
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.

2 participants