-
Notifications
You must be signed in to change notification settings - Fork 725
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: replace pauseLeader with two flags and add source filter to transferIn #8623
Conversation
…o transferIn Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8623 +/- ##
==========================================
- Coverage 75.62% 75.60% -0.02%
==========================================
Files 461 461
Lines 72310 72351 +41
==========================================
+ Hits 54683 54701 +18
- Misses 14128 14147 +19
- Partials 3499 3503 +4
Flags with carried forward coverage won't be shown. Click here to find out more. |
pkg/core/basic_cluster.go
Outdated
@@ -137,8 +137,10 @@ type StoreSetInformer interface { | |||
|
|||
// StoreSetController is used to control stores' status. | |||
type StoreSetController interface { | |||
PauseLeaderTransfer(id uint64) error | |||
ResumeLeaderTransfer(id uint64) | |||
PauseLeaderTransferIn(id uint64) 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.
How about adding a parameter?
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.
Is it something like PauseLeaderTransferIn(id uint64, d direction) 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.
yes, WDYT?
pkg/schedule/schedulers/utils.go
Outdated
// pauseAndResumeLeaderTransfer checks the old and new store IDs, and pause or resume the leader transfer. | ||
func pauseAndResumeLeaderTransfer[T any](cluster *core.BasicCluster, old, new map[uint64]T) { | ||
// pauseAndResumeLeaderTransferIn checks the old and new store IDs, and pause or resume the leader transfer in. | ||
func pauseAndResumeLeaderTransferIn[T any](cluster *core.BasicCluster, old, new map[uint64]T) { |
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.
ditto
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
PR needs rebase. 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-sigs/prow repository. |
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
PTAL @rleungx |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: okJiang, 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 |
/test pull-integration-realcluster-test |
/retest |
link #8757 (comment) |
…filter to transferIn (tikv#8623)" This reverts commit 8bc9749. Signed-off-by: okJiang <[email protected]>
What problem does this PR solve?
Issue Number: Close #8621
What is changed and how does it work?
Check List
Tests
Before this pr:
After this pr:
Release note