-
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
grpc_service: add ManuallyChangePeer
and ManuallyChangeMultiPeers
.
#8266
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
361e455
grpc_service: add `ManuallyChangePeer` and `ManuallyChangeMultiPeers`.
LykxSassinator 5270d79
Merge branch 'master' into change_peer_api
LykxSassinator 37a9dba
Merge branch 'master' into change_peer_api
LykxSassinator 6c7098e
Merge branch 'master' into change_peer_api
LykxSassinator 774fda1
Merge branch 'master' into change_peer_api
LykxSassinator f55f5fe
Merge branch 'master' into change_peer_api
LykxSassinator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ module github.com/tikv/pd/client | |
|
||
go 1.21 | ||
|
||
replace github.com/pingcap/kvproto => github.com/LykxSassinator/kvproto v0.0.0-20240605160713-4dfe4594d6ca | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will be cleared after pingcap/kvproto#1250 is merged. |
||
|
||
require ( | ||
github.com/BurntSushi/toml v0.3.1 | ||
github.com/cakturk/go-netstat v0.0.0-20200220111822-e5b49efee7a5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ go 1.21 | |
// kvproto at the same time. You can run `go mod tidy` to make it replaced with go-mod style specification. | ||
// After the PR to kvproto is merged, remember to comment this out and run `go mod tidy`. | ||
// replace github.com/pingcap/kvproto => github.com/$YourPrivateRepo $YourPrivateBranch | ||
replace github.com/pingcap/kvproto => github.com/LykxSassinator/kvproto v0.0.0-20240605160713-4dfe4594d6ca | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto. |
||
|
||
require ( | ||
github.com/AlekSi/gocov-xml v1.0.0 | ||
|
@@ -113,7 +114,6 @@ require ( | |
github.com/goccy/go-json v0.10.2 // indirect | ||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect | ||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect | ||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
github.com/golang/snappy v0.0.4 // indirect | ||
github.com/google/pprof v0.0.0-20211122183932-1daafda22083 // indirect | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 necessary? Why not let TiKV handle it? If we are going to use RPC to solve the snapshot problem, we still can not ensure that the operator is executed successfully.
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 used to make the operation on
add peer
/remove peer
managed by PD uniformly.If let TiKV handle it directly, the scheduling on
add peer
orremove peer
will not be perceived by PD, and the check of the scheduler cannot be validated by thestore limit
and other checking mechanisms.As for
TiKV will retry the
remove peer
RPC if the operator does not make senses until this peer is cleared.