Skip to content

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

@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

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