-
Notifications
You must be signed in to change notification settings - Fork 5.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
lightning: mark background and resource group name when in local mode #44950
lightning: mark background and resource group name when in local mode #44950
Conversation
Skipping CI for Draft Pull Request. |
Skipping CI for Draft Pull Request. |
83990ad
to
5b4d006
Compare
65c75b2
to
48532a6
Compare
48532a6
to
c9f2cc0
Compare
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.
The resource-group part LGTM. Should also add resource-group-tag so tikv can identify the task type. /cc @nolouch @lance6716
c9f2cc0
to
fc3e0bc
Compare
/retest-required |
1 similar comment
/retest-required |
/retest |
/retest-required |
@lance6716 @nolouch PTAL again, thanks |
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.
rest lgtm
@@ -60,7 +60,13 @@ func NewChecksumManager(ctx context.Context, rc *Controller, store kv.Storage) ( | |||
log.FromContext(ctx).Info("set tidb_backoff_weight to default", zap.Int("backoff_weight", local.DefaultBackoffWeight)) | |||
backoffWeight = local.DefaultBackoffWeight | |||
} | |||
manager = local.NewTiKVChecksumManager(store.GetClient(), pdCli, uint(rc.cfg.TiDB.DistSQLScanConcurrency), backoffWeight) | |||
|
|||
explicitRequestSourceType, err := common.GetExplicitRequestSourceTypeFromDB(ctx, rc.db) |
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.
Will it fail when the target cluster is lower version? Is this by design?
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.
- Querying a lower version of tidb only returns empty results.
- When getting empty results, it will be the same as the default setting.
@@ -121,7 +121,7 @@ func createLocalBackend(ctx context.Context, cfg *Config) (*local.Backend, error | |||
regionSizeGetter := &local.TableRegionSizeGetterImpl{ | |||
DB: nil, | |||
} | |||
backendConfig := local.NewBackendConfig(cfg.Lightning, int(LitRLimit), cfg.KeyspaceName) | |||
backendConfig := local.NewBackendConfig(cfg.Lightning, int(LitRLimit), cfg.KeyspaceName, "") |
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.
maybe ask for a DDL developer to review the value
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.
@wjhuang2016 PTAL
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.
LGTM~
Signed-off-by: husharp <jinhao.hu@pingcap.com>
lgtm |
/retest-required |
1 similar comment
/retest-required |
Signed-off-by: husharp <jinhao.hu@pingcap.com>
Signed-off-by: husharp <jinhao.hu@pingcap.com>
b6f06cd
to
2ca33d8
Compare
/retest-required |
@HuSharp: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/retest-required |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: glorv, tangenta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: husharp jinhao.hu@pingcap.com
What problem does this PR solve?
Issue Number: ref #44517
wait for tikv/client-go#872 merged.
Problem Summary:
What is changed and how it works?
Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.