-
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
ddl, session: using table ID instead of partition ID when calling SplitRegions | tidb-test=pr/2145 #46173
ddl, session: using table ID instead of partition ID when calling SplitRegions | tidb-test=pr/2145 #46173
Conversation
Hi @zimulala. 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. |
/retest-required |
@zimulala: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/retest-required |
@zimulala: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/test mysql-test |
@zimulala: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/retest-required |
@zimulala: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/retest-required |
@zimulala: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/retest-required |
@zimulala: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
@crazycs520: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this: 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. |
/retest-required |
@zimulala: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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 |
/test mysql-test tidb-test=pr/2145 |
@zimulala: No presubmit jobs available for pingcap/tidb@release-6.5-20230425-v6.5.2 In response to this:
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. |
/test mysql-test tidb-test=pr/2145 |
@zimulala: No presubmit jobs available for pingcap/tidb@release-6.5-20230425-v6.5.2 In response to this:
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. |
/test mysql-test tidb-test=pr/2145 |
@zimulala: No presubmit jobs available for pingcap/tidb@release-6.5-20230425-v6.5.2 In response to this:
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. |
/test mysql-test |
@zimulala: No presubmit jobs available for pingcap/tidb@release-6.5-20230425-v6.5.2 In response to this:
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. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release-6.5-20230425-v6.5.2 #46173 +/- ##
================================================================
Coverage ? 73.4097%
================================================================
Files ? 1079
Lines ? 345991
Branches ? 0
================================================================
Hits ? 253991
Misses ? 75576
Partials ? 16424 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: crazycs520, tangenta, you06 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 |
9354ebb
into
pingcap:release-6.5-20230425-v6.5.2
This is an automated cherry-pick of #46156
What problem does this PR solve?
Issue Number: close #46135
Problem Summary:
tidb/ddl/split_region.go
Lines 44 to 46 in 95b4dcc
tidb/ddl/split_region.go
Lines 121 to 123 in 95b4dcc
https://github.com/tikv/pd/blob/346e7716e2598dfba2db6afa73c3731e15449f49/client/client.go#L1403-L1409
As you can see from the above code, the tableID passed to
SplitRegions
is the ID of the partitioned table. And we use tableID asGroup
pass to PD. So different partition ID uses different group ID in a table which makes the split region is uneven.What is changed and how it works?
In the partition table, we use table ID as a group ID to pass PD.
Check List
Tests
Before this PR:
After this PR:
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.