-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](Export) fix dead lock of parallel Exporting #43083
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
Merged
Conversation
This file contains hidden or 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
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
16 tasks
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 41236 ms |
TPC-DS: Total hot run time: 195437 ms |
ClickBench: Total hot run time: 32.94 s |
16 tasks
wuwenchi
approved these changes
Nov 1, 2024
Contributor
|
PR approved by anyone and no changes requested. |
CalvinKirs
approved these changes
Nov 1, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
morningman
pushed a commit
that referenced
this pull request
Nov 1, 2024
### What problem does this PR solve? bp: #43083
morningman
pushed a commit
that referenced
this pull request
Nov 2, 2024
morningman
pushed a commit
to morningman/doris
that referenced
this pull request
Nov 7, 2024
Problem Summary: There are 2 locks, lock of ExportMgr and lock of ExportJob(synchronized lock). Previously, the lock order is wrong: 1. When cancelling job, it will first get job lock, then getting mgr lock. 2. When removing old job, it will first get mgr lock, then getting job lock. This PR fix it by always getting job lock after mgr lock, to avoid dead lock.
morningman
added a commit
that referenced
this pull request
Nov 7, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
approved
Indicates a PR has been approved by one committer.
dev/2.0.16-merged
dev/2.1.7-merged
dev/3.0.3-merged
p0_b
reviewed
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.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
There are 2 locks, lock of ExportMgr and lock of ExportJob(synchronized lock).
Previously, the lock order is wrong:
This PR fix it by always getting job lock after mgr lock, to avoid dead lock.
Check List (For Committer)
Test
Behavior changed:
Does this need documentation?
Release note
None
Check List (For Reviewer who merge this PR)