server, endpoint, client: Add PD APIs for RawKV GC Worker#4866
server, endpoint, client: Add PD APIs for RawKV GC Worker#4866AmoebaProtozoa wants to merge 21 commits into
Conversation
|
[REVIEW NOTIFICATION] This pull request has not been approved. 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. DetailsReviewer can indicate their review by submitting an approval review. |
6556954 to
c5944e3
Compare
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
3160a94 to
fd07049
Compare
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
| } | ||
|
|
||
| // RemoveServiceGCSafePoint removes a GC safepoint for the service | ||
| // RemoveServiceGCSafePoint removes a GC safeoint for the service |
| // gcSafePointPathByServiceGroup returns the path of the gc_worker's safe point | ||
| // /gc_servicegroup/gc_safepoint/$service_group_id | ||
| func gcSafePointPathByServiceGroup(serviceGroupID string) string { | ||
| return path.Join(gcServiceGroupPath, "gc_safepoint", serviceGroupID) |
There was a problem hiding this comment.
suggest to define the path including gc_safepoint service_safepoint as const.
…_path.go Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
| c.ScheduleCheckLeader() | ||
| return false, 0, errors.WithStack(err) | ||
| } | ||
| // if requested safepoint is the new safepoint, then update succeeded |
There was a problem hiding this comment.
| // if requested safepoint is the new safepoint, then update succeeded | |
| // If requested safepoint is the new safepoint, then update succeeded |
Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
|
@haojinming: 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. DetailsIn 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. |
Signed-off-by: pingyu <yuping@pingcap.com>
|
/cc @nolouch @MyonKeminta |
|
@pingyu: GitHub didn't allow me to request PR reviews from the following users: MyonKeminta. Note that only tikv members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn 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 kubernetes/test-infra repository. |
PTAL, thanks~ |
|
PTAL @AndreMouche |
nolouch
left a comment
There was a problem hiding this comment.
Can you split your PR to small parts to help review?
| Close() | ||
|
|
||
| // GetGCAllServiceGroups returns a list containing all service groups that has safe point in pd | ||
| GetGCAllServiceGroups(ctx context.Context) ([]string, error) |
There was a problem hiding this comment.
Better to define independently and then nested in here;
OK~ |
Here is the storage part. PTAL, thanks~ |
|
@AmoebaProtozoa: PR needs rebase. DetailsInstructions 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/test-infra repository. |
What problem does this PR solve?
Issue Number: ref #4865
RFC: tikv/rfcs#90
What is changed and how does it work?
Check List
Tests
Related changes
ToDo:
Release note