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.
[bugfix](wg)refactor query queue for robustness (apache#37642)
## Proposed changes To simplify QueryQueue's code for robustness, redefine QueryQueue's usage in two steps: 1 use QueryQueue.getToken to get token, then token state maybe running or queued; 2 release QueryToken when coordinator.close,decrement runningQueryNum or remove it from waiting queue; We just need to keep this two step is atomic,then whether QueueToken.get is succ or exception is not important. So this PR remove ```removeToken``` method and just release QueueToken in ```coord.close```. imported: apache#35929
- Loading branch information
Showing
3 changed files
with
12 additions
and
16 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