-
Notifications
You must be signed in to change notification settings - Fork 720
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
pd-ctl: rename scatter-range to scatter-range-scheduler #8607
Conversation
Signed-off-by: okJiang <[email protected]>
@@ -182,11 +181,6 @@ func SchedulerByName(name string) string { | |||
return fmt.Sprintf("%s/%s", Schedulers, name) | |||
} | |||
|
|||
// ScatterRangeSchedulerWithName returns the scatter range scheduler API with name parameter. | |||
func ScatterRangeSchedulerWithName(name string) 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.
It's a breaking change.
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.
It 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.
TiDB uses it.
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.
I have not found it in TiDB. And where is the service interface implement in PD server? 🤔
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.
Signed-off-by: okJiang <[email protected]>
Signed-off-by: okJiang <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8607 +/- ##
==========================================
+ Coverage 77.62% 77.66% +0.03%
==========================================
Files 474 474
Lines 62105 62115 +10
==========================================
+ Hits 48211 48240 +29
+ Misses 10340 10332 -8
+ Partials 3554 3543 -11
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: okJiang <[email protected]>
@@ -60,7 +60,7 @@ const ( | |||
RegionLabelRulesByIDs = "/pd/api/v1/config/region-label/rules/ids" | |||
// Scheduler | |||
Schedulers = "/pd/api/v1/schedulers" | |||
scatterRangeScheduler = "/pd/api/v1/schedulers/scatter-range-" | |||
scatterRangeScheduler = "/pd/api/v1/schedulers/scatter-range-scheduler-" |
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 update tidb repo
Signed-off-by: okJiang <[email protected]>
Signed-off-by: okJiang <[email protected]>
@@ -90,7 +90,7 @@ func (conf *scatterRangeSchedulerConfig) getEndKey() []byte { | |||
func (conf *scatterRangeSchedulerConfig) getSchedulerName() string { | |||
conf.RLock() | |||
defer conf.RUnlock() | |||
return fmt.Sprintf("scatter-range-%s", conf.RangeName) | |||
return fmt.Sprintf("%s-%s", types.ScatterRangeScheduler, conf.RangeName) |
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 to consider the compatibility issue
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.
This commit fixed it. You can check it in its comment.
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.
friendly ping
Signed-off-by: okJiang <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HuSharp, 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 |
What problem does this PR solve?
Issue Number: Close #8379
What is changed and how does it work?
Check List
Tests
Release note