-
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: Fix empty region pre-check #27824
Conversation
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
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
@@ -263,7 +315,7 @@ func (rc *Controller) checkRegionDistribution(ctx context.Context) error { | |||
} | |||
|
|||
// CheckClusterRegion checks cluster if there are too many empty regions or region distribution is unbalanced. | |||
func (rc *Controller) CheckClusterRegion(ctx context.Context) error { | |||
func (rc *Controller) CheckClusterRegion(ctx context.Context, controller *pdutil.PdController) error { |
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.
seems the new controller argument is not used
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.
Yes.... It is a bad code...
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.
Done
@@ -19,6 +19,7 @@ import ( | |||
"context" | |||
"fmt" | |||
"io" | |||
"modernc.org/mathutil" |
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.
need move to next import group
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 1c98275
|
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 235b24c
|
/run-check_dev_2 |
/run-check_dev_2 |
3 similar comments
/run-check_dev_2 |
/run-check_dev_2 |
/run-check_dev_2 |
/label needs-cherry-pick-5.2 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.2 in PR #33885 |
@niubell Why cherry-pick this PR into v5.2? |
The issue #27749 has affects-5.2 label, shouldn't we? |
/remove-label needs-cherry-pick-5.2 |
Signed-off-by: Little-Wallace bupt2013211450@gmail.com
What problem does this PR solve?
Problem Summary:
Lightning can not pass pre-check when user try to import a large of number tables but he does not disable
split-on-table
of TiDB configure.What is changed and how it works?
Proposal: xxx
What's Changed:
How it Works:
Check List
Tests
Side effects
Documentation
Release note