-
Notifications
You must be signed in to change notification settings - Fork 721
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
resource_manager, storage: create new storage endpoint for resource manager #5887
resource_manager, storage: create new storage endpoint for resource manager #5887
Conversation
Signed-off-by: Cabinfever_B <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: Cabinfever_B <[email protected]>
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.
LGTM!
@HuSharp: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this:
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 ti-community-infra/tichi repository. |
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.
Left few trivial comments.
LGTM.
@@ -1888,9 +1888,9 @@ func (s *GrpcServer) StoreGlobalConfig(_ context.Context, request *pdpb.StoreGlo | |||
name := item.GetName() | |||
switch item.GetKind() { | |||
case pdpb.EventType_PUT: | |||
ops[i] = clientv3.OpPut(s.GetFinalPathWithinPD(request.GetConfigPath()+name), item.GetValue()) | |||
ops[i] = clientv3.OpPut(request.GetConfigPath()+name, item.GetValue()) |
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.
nit: this line, compared to line 1893, has different coding style
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.
"...)+name vs. "...) + name"
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 style is generated by go fmt
@@ -43,6 +42,8 @@ const ( | |||
keyspaceIDInfix = "id" | |||
keyspaceAllocID = "alloc_id" | |||
regionPathPrefix = "raft/r" | |||
// resource group storage endpoint has prefix `resource_group` | |||
resourceGroupSettingsPath = "settings" |
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.
nit: alignment problem around "=".
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.
According to the Go code formatter, it's separated by the comment above, so there is no need to align it with other equality signs.
@binshi-bing: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this:
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 ti-community-infra/tichi repository. |
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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 ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: c83465f
|
close #5885, ref #5887, ref #5888, ref pingcap/tiflow#8110 The global config needs to support both names and configuration paths, not only for compatibility but also to make more sense. Signed-off-by: husharp <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
Signed-off-by: Cabinfever_B [email protected]
What problem does this PR solve?
Issue Number: Ref #5851
This PR and #5886 will fix #pingcap/tiflow#8110
What is changed and how does it work?
Create a new storage endpoint and uses separate root path different from PD server
Check List
Tests
Code changes
Release note