-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
WriteBufferFromS3 potential deadlock fix #40070
Merged
KochetovNicolai
merged 3 commits into
ClickHouse:master
from
kitaisreal:write-buffer-from-s3-potential-deadlock-fix
Aug 17, 2022
Merged
WriteBufferFromS3 potential deadlock fix #40070
KochetovNicolai
merged 3 commits into
ClickHouse:master
from
kitaisreal:write-buffer-from-s3-potential-deadlock-fix
Aug 17, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kitaisreal
commented
Aug 10, 2022
src/IO/WriteBufferFromS3.cpp
Outdated
@@ -272,7 +285,7 @@ void WriteBufferFromS3::writePart() | |||
file_segments_holder.reset(); | |||
} | |||
|
|||
schedule([this, task]() | |||
schedule([this, task, task_notify]() |
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.
Schedule can throw exception, in that case we could miss notify event.
robot-clickhouse
added
the
pr-not-for-changelog
This PR should not be mentioned in the changelog
label
Aug 10, 2022
kitaisreal
force-pushed
the
write-buffer-from-s3-potential-deadlock-fix
branch
from
August 10, 2022 17:08
e1b56c1
to
fa65769
Compare
KochetovNicolai
approved these changes
Aug 10, 2022
kitaisreal
force-pushed
the
write-buffer-from-s3-potential-deadlock-fix
branch
from
August 10, 2022 17:23
fa65769
to
4b1c93d
Compare
@KochetovNicolai Changelog should be edited. |
kitaisreal
added
the
can be tested
Allows running workflows for external contributors
label
Aug 10, 2022
@kitaisreal please check if it fixes #38158. |
kitaisreal
force-pushed
the
write-buffer-from-s3-potential-deadlock-fix
branch
from
August 12, 2022 12:06
6c7576c
to
60e4010
Compare
kitaisreal
force-pushed
the
write-buffer-from-s3-potential-deadlock-fix
branch
from
August 15, 2022 09:09
60e4010
to
ee5e61c
Compare
kitaisreal
added
bug
Confirmed user-visible misbehaviour in official release
and removed
pr-not-for-changelog
This PR should not be mentioned in the changelog
labels
Aug 15, 2022
robot-clickhouse
added
the
pr-bugfix
Pull request with bugfix, not backported by default
label
Aug 15, 2022
tavplubix
removed
the
bug
Confirmed user-visible misbehaviour in official release
label
Aug 17, 2022
kitaisreal
added
the
pr-must-backport
Pull request should be backported intentionally. Use this label with great care!
label
Aug 23, 2022
robot-clickhouse
pushed a commit
that referenced
this pull request
Aug 23, 2022
kitaisreal
added a commit
that referenced
this pull request
Aug 24, 2022
Backport #40070 to 22.7: WriteBufferFromS3 potential deadlock fix
robot-clickhouse
pushed a commit
that referenced
this pull request
Sep 1, 2022
robot-clickhouse
pushed a commit
that referenced
this pull request
Sep 1, 2022
robot-ch-test-poll
added
the
pr-backports-created
Backport PRs are successfully created, it won't be processed by CI script anymore
label
Sep 1, 2022
kitaisreal
added a commit
that referenced
this pull request
Sep 8, 2022
Backport #40070 to 22.6: WriteBufferFromS3 potential deadlock fix
kitaisreal
added a commit
that referenced
this pull request
Sep 8, 2022
Backport #40070 to 22.3: WriteBufferFromS3 potential deadlock fix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
can be tested
Allows running workflows for external contributors
pr-backports-created
Backport PRs are successfully created, it won't be processed by CI script anymore
pr-bugfix
Pull request with bugfix, not backported by default
pr-must-backport
Pull request should be backported intentionally. Use this label with great care!
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix potential deadlock in WriteBufferFromS3 during task scheduling failure.