Adapt to the blocklist feature in serverless#9578
Adapt to the blocklist feature in serverless#9578ti-chi-bot[bot] merged 20 commits intopingcap:masterfrom
Conversation
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
dbms/src/Interpreters/Settings.h
Outdated
| M(SettingUInt64, disagg_build_task_timeout, DEFAULT_DISAGG_TASK_BUILD_TIMEOUT_SEC, "disagg task establish timeout, unit is second.") \ | ||
| M(SettingUInt64, disagg_task_snapshot_timeout, DEFAULT_DISAGG_TASK_TIMEOUT_SEC, "disagg task snapshot max endurable time, unit is second.") \ | ||
| M(SettingUInt64, disagg_fetch_pages_timeout, DEFAULT_DISAGG_FETCH_PAGES_TIMEOUT_SEC, "fetch disagg pages timeout for one segment, unit is second.") \ | ||
| M(SettingString, disagg_blocklist_wn_store_id, "", "comma seperated unsigned integers representing `store_id`s of stores that are blocklisted.") \ |
There was a problem hiding this comment.
Is this parameter designed to identify issues online and configure them manually?
| {} | ||
| { | ||
| #if SERVERLESS_PROXY == 1 | ||
| std::istringstream iss(context.getSettingsRef().disagg_blocklist_wn_store_id); |
There was a problem hiding this comment.
Why not parse this parameter when the server startup?
| std::istringstream iss(context.getSettingsRef().disagg_blocklist_wn_store_id); | ||
| std::string token; | ||
|
|
||
| while (std::getline(iss, token, ',')) |
There was a problem hiding this comment.
Using functions like boost::split can simplify these code.
There was a problem hiding this comment.
Seems the function is not applicable to unordereed_set
| const FilterConditions & filter_conditions; | ||
|
|
||
| std::unique_ptr<DAGExpressionAnalyzer> analyzer; | ||
| std::unordered_set<uint64_t> store_id_blocklist; |
There was a problem hiding this comment.
I think store_id_blocklist is very small, and std::vector is more cache friendly and efficently.
There was a problem hiding this comment.
It will eventually be converted to unordered_set as an argument to a API in client-c. A better way(if necessay) is make store_id_blocklist into a sigleton.
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Co-authored-by: JaySon <tshent@qq.com>
Co-authored-by: JaySon <tshent@qq.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang, Lloyd-Pottiger The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
|
/pull-integration-test |
1 similar comment
|
/pull-integration-test |
|
/test pull-integration-test |
close pingcap#9575 Signed-off-by: Calvin Neo <calvinneo1995@gmail.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
|
cherry pick to release-8.5 along with this PR: #9651 |
Issue Number: close #9575
Problem Summary:
The feature is not enabled on master branch.
See https://github.com/tidbcloud/tiflash-cse/pull/308 for more.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note