[feature](workload) Support remote scan bytes breaker in workload policy#64649
Open
wenzhenghu wants to merge 3 commits into
Open
[feature](workload) Support remote scan bytes breaker in workload policy#64649wenzhenghu wants to merge 3 commits into
wenzhenghu wants to merge 3 commits into
Conversation
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Add a Hive external table regression test for workload policy cancellation by BE-side remote storage scan bytes. The test creates an HMS catalog, chooses an existing lineitem table from tpch1_parquet or tpch1, creates a workload policy with be_scan_bytes_from_remote_storage, and verifies that the query is cancelled with the remote scan bytes counter in the error message.
### Release note
None
### Check List (For Author)
- Test: Regression test / syntax check
- Ran test_workload_policy_remote_scan_bytes against 172.16.0.90:9036
- Ran Groovy FileSystemCompiler syntax check
- Ran git diff --cached --check
- Behavior changed: No
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
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
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.
What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
This PR adds a new workload policy condition
be_scan_bytes_from_remote_storage, which allows Doris to cancel queries according to the amount of data read from remote storage by BE scan tasks. This is useful for limiting external table queries that read too much remote HDFS or object storage data.Implementation summary:
be_scan_bytes_from_remote_storage.io_context()->scan_bytes_from_remote_storage().lineitemtable.Release note
Support workload policy cancellation by BE remote storage scan bytes.
Check List (For Author)
test_workload_policy_remote_scan_bytesbe_scan_bytes_from_remote_storage.