-
Notifications
You must be signed in to change notification settings - Fork 727
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
scheduler: remove old scheduler name #8516
Conversation
Skipping CI for Draft Pull Request. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8516 +/- ##
==========================================
+ Coverage 77.56% 77.57% +0.01%
==========================================
Files 474 474
Lines 61859 61864 +5
==========================================
+ Hits 47979 47993 +14
+ Misses 10350 10342 -8
+ Partials 3530 3529 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
@@ -23,6 +23,7 @@ import ( | |||
sc "github.com/tikv/pd/pkg/schedule/config" | |||
"github.com/tikv/pd/pkg/schedule/operator" | |||
"github.com/tikv/pd/pkg/schedule/plan" | |||
types "github.com/tikv/pd/pkg/schedule/type" |
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.
How about renaming it to types?
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.
sgtm
} | ||
} | ||
return &DiagnosticResult{ | ||
Name: d.schedulerName, | ||
Name: string(d.schedulerType), |
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.
What is the difference between string(d.schedulerType)
and d.schedulerType.String()
?
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.
no difference
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.
Then shall we keep consistent with other places?
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.
updated
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, niubell, rleungx 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: okJiang <819421878@qq.com>
What problem does this PR solve?
Issue Number: Ref #8379
What is changed and how does it work?
Check List
Tests
Release note