-
Notifications
You must be signed in to change notification settings - Fork 718
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
*: reset config if the input is invalid #8632
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
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 rest LGTM
@@ -813,6 +813,60 @@ func (suite *schedulerTestSuite) checkSchedulerDiagnostic(cluster *pdTests.TestC | |||
checkSchedulerDescribeCommand("balance-leader-scheduler", "normal", "") | |||
} | |||
|
|||
func (suite *schedulerTestSuite) TestEvictLeaderScheduler() { | |||
// FIXME: API mode may have the problem |
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 we fix it in another PR?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024 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 |
[LGTM Timeline notifier]Timeline:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8632 +/- ##
==========================================
- Coverage 77.60% 77.55% -0.05%
==========================================
Files 474 474
Lines 61893 61906 +13
==========================================
- Hits 48029 48014 -15
- Misses 10320 10338 +18
- Partials 3544 3554 +10
Flags with carried forward coverage won't be shown. Click here to find out more. |
re.Contains(string(output), "Success!") | ||
output, err = tests.ExecuteCommand(cmd, []string{"-u", pdAddr, "scheduler", "remove", "evict-leader-scheduler"}...) | ||
re.NoError(err) | ||
re.Contains(string(output), "Success!") |
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 we need to check
testutil.Eventually(re, func() bool { // wait for removed scheduler to be synced to scheduling server.
output := mustExec(re, cmd, []string{"-u", pdAddr, "scheduler", "config", "evict-leader-scheduler"}, nil)
return strings.Contains(output, "[404] scheduler not found")
})
What problem does this PR solve?
Issue Number: Close #8619.
What is changed and how does it work?
Check List
Tests
Release note