-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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] Add big query error in audit log #49611
[Enhancement] Add big query error in audit log #49611
Conversation
Signed-off-by: zihe.liu <[email protected]>
Signed-off-by: zihe.liu <[email protected]>
Quality Gate passedIssues Measures |
@@ -261,6 +261,10 @@ std::string Status::code_as_string() const { | |||
return "Capaticy limit exceeded"; | |||
case TStatusCode::SHUTDOWN: | |||
return "Shut down in progress"; | |||
case TStatusCode::BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED: |
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.
do you have to handle big query memory limit?
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.
big_query_mem_limit
is also handled by TStatusCode:MEM_LIMIT_EXCEEDED
.
LGTM |
[FE Incremental Coverage Report]✅ pass : 9 / 9 (100.00%) file detail
|
[BE Incremental Coverage Report]❌ fail : 0 / 12 (00.00%) file detail
|
@alvin-celerdata do you think it's okay to merge? it's hard to cover resource group code. |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit 2e68c7e) # Conflicts: # be/src/common/status.cpp # be/src/common/status.h # gensrc/thrift/StatusCode.thrift
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit 2e68c7e) # Conflicts: # be/src/common/status.cpp # be/src/common/status.h # fe/fe-core/src/test/java/com/starrocks/qe/ConnectContextTest.java # gensrc/thrift/StatusCode.thrift
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit 2e68c7e) # Conflicts: # be/src/common/status.cpp # fe/fe-core/src/main/java/com/starrocks/http/HttpConnectProcessor.java # fe/fe-core/src/main/java/com/starrocks/qe/ConnectContext.java # fe/fe-core/src/test/java/com/starrocks/qe/ConnectContextTest.java # gensrc/thrift/StatusCode.thrift
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit 2e68c7e) # Conflicts: # be/src/common/status.cpp # fe/fe-core/src/main/java/com/starrocks/http/HttpConnectProcessor.java # fe/fe-core/src/main/java/com/starrocks/qe/ConnectContext.java # fe/fe-core/src/test/java/com/starrocks/qe/ConnectContextTest.java # gensrc/thrift/StatusCode.thrift
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit 2e68c7e) # Conflicts: # be/src/common/status.cpp # fe/fe-core/src/main/java/com/starrocks/http/HttpConnectProcessor.java # fe/fe-core/src/main/java/com/starrocks/qe/ConnectContext.java # fe/fe-core/src/test/java/com/starrocks/qe/ConnectContextTest.java # gensrc/thrift/StatusCode.thrift
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]>
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]>
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]>
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]>
Why I'm doing: When exceeding the thredsholds of big_query_cpu_second_limit or big_query_scan_rows_limit, the query will be failed. However, we don't know a query is killed by which big query thredsholds or other reasons. What I'm doing: Add BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED and BIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED to TStatusCode. Signed-off-by: zihe.liu <[email protected]>
) Signed-off-by: zihe.liu <[email protected]>
) Signed-off-by: zihe.liu <[email protected]>
) Signed-off-by: zihe.liu <[email protected]>
) Signed-off-by: zihe.liu <[email protected]>
) Signed-off-by: zihe.liu <[email protected]>
Why I'm doing:
When exceeding the thredsholds of
big_query_cpu_second_limit
orbig_query_scan_rows_limit
, the query will be failed.However, we don't know a query is killed by which big query thredsholds or other reasons.
What I'm doing:
Add
BIG_QUERY_CPU_SECOND_LIMIT_EXCEEDED
andBIG_QUERY_SCAN_ROWS_LIMIT_EXCEEDED
toTStatusCode
.Fixes #issue
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:
Documentation PRs only:
If you are submitting a PR that adds or changes English documentation and have not
included Chinese documentation, then you can check the box to request GPT to translate the
English doc to Chinese. Please ensure to uncheck the Do not translate box if translation is needed.
The workflow will generate a new PR with the Chinese translation after this PR is merged.