-
Notifications
You must be signed in to change notification settings - Fork 5.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
restore: refactor split code for two phase split. #48244
Conversation
Skipping CI for Draft Pull Request. |
Hi @3pointer. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
acf67d6
to
90ed3e5
Compare
/ok-to-test |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #48244 +/- ##
================================================
- Coverage 71.9200% 68.6844% -3.2356%
================================================
Files 1438 1440 +2
Lines 345755 408072 +62317
================================================
+ Hits 248667 280282 +31615
- Misses 76821 108767 +31946
+ Partials 20267 19023 -1244
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e4d95c3
to
aaa827d
Compare
br/pkg/restore/pipeline_items.go
Outdated
} | ||
|
||
for _, dr := range res { | ||
outCh <- dr |
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.
use ctx to avoid getting stuck
br/pkg/task/restore.go
Outdated
@@ -942,11 +959,13 @@ func runRestore(c context.Context, g glue.Glue, cmdName string, cfg *RestoreConf | |||
}) | |||
} | |||
|
|||
blockTableStream := GoBlockCreateTablesPipeline(ctx, maxRestoreBatchSizeLimit, tableStream) |
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.
block only if granularity == string(CoarseGrained)
br/pkg/task/restore.go
Outdated
}) | ||
|
||
for _, tbl := range cachedTables { | ||
outCh <- tbl |
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.
use ctx to avoid getting stuck
@@ -1490,7 +1490,7 @@ func createRestoreClient(ctx context.Context, g glue.Glue, cfg *RestoreConfig, m | |||
client.SetCrypter(&cfg.CipherInfo) | |||
client.SetConcurrency(uint(cfg.Concurrency)) | |||
client.SetSwitchModeInterval(cfg.SwitchModeInterval) | |||
client.InitClients(u, false, false) | |||
client.InitClients(ctx, u, false, false) |
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.
is the log restore affected by the modified InitClient
?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BornChanger, Leavrth The full list of commands accepted by this bot can be found here. The pull request process is described here |
[LGTM Timeline notifier]Timeline:
|
7517755
to
9859de1
Compare
/retest |
What problem does this PR solve?
Issue Number: ref #33937
Problem Summary:
split too many regions on the same node. will become bottleneck of a large scale cluster restoration.
What is changed and how it works?
utils.retry
for all related backoffer.Check List
Tests
without this change:
with this change:
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.