-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement] Avoid checking group concurrency_limit when enabling group level queue #34398
Merged
murphyatwork
merged 6 commits into
StarRocks:main
from
ZiheLiu:opt/main/group_level_queue_concurrency_limit
Nov 7, 2023
Merged
[Enhancement] Avoid checking group concurrency_limit when enabling group level queue #34398
murphyatwork
merged 6 commits into
StarRocks:main
from
ZiheLiu:opt/main/group_level_queue_concurrency_limit
Nov 7, 2023
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
…oup level queue Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
kangkaisen
reviewed
Nov 6, 2023
Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
Kudos, SonarCloud Quality Gate passed! |
satanson
approved these changes
Nov 6, 2023
ZiheLiu
added a commit
to ZiheLiu/starrocks
that referenced
this pull request
Nov 6, 2023
…oup level queue (StarRocks#34398) Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
[FE Incremental Coverage Report]✅ pass : 41 / 47 (87.23%) file detail
|
[BE Incremental Coverage Report]❌ fail : 6 / 13 (46.15%) file detail
|
murphyatwork
approved these changes
Nov 7, 2023
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Nov 7, 2023
…oup level queue (#34398) Signed-off-by: zihe.liu <ziheliu1024@gmail.com> (cherry picked from commit 5d15398) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/qe/QueryQueueManager.java # fe/fe-core/src/main/java/com/starrocks/qe/scheduler/TFragmentInstanceFactory.java # fe/fe-core/src/main/java/com/starrocks/qe/scheduler/dag/JobSpec.java # fe/fe-core/src/test/java/com/starrocks/qe/scheduler/QueryQueueManagerTest.java
ZiheLiu
added a commit
to ZiheLiu/starrocks
that referenced
this pull request
Nov 7, 2023
…oup level queue (StarRocks#34398) Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
GavinMar
pushed a commit
to GavinMar/starrocks
that referenced
this pull request
Nov 8, 2023
…oup level queue (StarRocks#34398) (StarRocks#34434) Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
GavinMar
pushed a commit
to GavinMar/starrocks
that referenced
this pull request
Jan 3, 2024
…oup level queue (StarRocks#34398) (StarRocks#34434) Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
23 tasks
luohaha
added a commit
to luohaha/starrocks
that referenced
this pull request
Jan 12, 2024
…oup level queue (backport StarRocks#34398) Signed-off-by: luohaha <18810541851@163.com>
luohaha
pushed a commit
to luohaha/starrocks
that referenced
this pull request
Jan 12, 2024
…oup level queue (backport StarRocks#34398) (StarRocks#34479) Signed-off-by: zihe.liu <ziheliu1024@gmail.com> Signed-off-by: ZiheLiu <ziheliu1024@gmail.com>
23 tasks
luohaha
pushed a commit
to luohaha/starrocks
that referenced
this pull request
Jan 13, 2024
…oup level queue (backport StarRocks#34398) (StarRocks#34479) Signed-off-by: zihe.liu <ziheliu1024@gmail.com> Signed-off-by: ZiheLiu <ziheliu1024@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When enabling group level query queue,
concurrency_limit
is checked in both FE and BEa. FE will queue the coming queries, when
num_running_queries
==concurrency_limit
.b. BE will fail the coming queries, when
num_running_queries
==concurrency_limit
.num_running_queries
in FE and BE are uncertain.a. FE decreases
num_running_queries
, when it receives EOS RPC from BE.b. BE decreases
num_running_queries
, when it finalizes the query context (after sending EOS RPC to FE asynchronously).Therefore,
num_running_queries
in BE may be greater than that in FE. This results in that the query is admitted by FE but still failed by exceeding the concurrency limit in BE, even though the group level query queue is enabled. This is not intuitive.Thus, to make the judgement of exceeding the concurrency limit in FE and BE consistent, when enabling group level query queue, BE doesn't check it anymore.
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: