-
Notifications
You must be signed in to change notification settings - Fork 726
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
keypath: unify leader/primary path #8859
Conversation
Signed-off-by: okJiang <[email protected]>
Signed-off-by: okJiang <[email protected]>
Signed-off-by: okJiang <[email protected]>
Signed-off-by: okJiang <[email protected]>
/retest |
1 similar comment
/retest |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8859 +/- ##
==========================================
+ Coverage 76.14% 76.23% +0.08%
==========================================
Files 458 458
Lines 70208 70213 +5
==========================================
+ Hits 53462 53528 +66
+ Misses 13389 13336 -53
+ Partials 3357 3349 -8
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: okJiang <[email protected]>
/retest |
Signed-off-by: okJiang <[email protected]>
/retest |
@@ -57,6 +67,17 @@ func LeaderPath(p *MsParam) string { | |||
return fmt.Sprintf(msLeaderPathFormat, ClusterID(), p.ServiceName) | |||
} | |||
|
|||
// ExpectedPrimaryPath returns the expected_primary path. | |||
func ExpectedPrimaryPath(p *MsParam) string { | |||
if p.ServiceName == "tso" { |
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 using TSOServiceName
?
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.
done
Signed-off-by: okJiang <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, 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: Ref #8582
What is changed and how does it work?
Check List
Tests
Release note