forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](Export) fix dead lock of parallel Exporting (apache#43083)
### What problem does this PR solve? 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.
- Loading branch information
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
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
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
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