Skip to content
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

Merged
merged 8 commits into from
Dec 2, 2024
Merged

Conversation

okJiang
Copy link
Member

@okJiang okJiang commented Nov 27, 2024

What problem does this PR solve?

Issue Number: Ref #8582

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test

Release note

None.

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 27, 2024
Signed-off-by: okJiang <[email protected]>
Signed-off-by: okJiang <[email protected]>
@okJiang
Copy link
Member Author

okJiang commented Nov 27, 2024

/cc @lhy1024 @rleungx

@ti-chi-bot ti-chi-bot bot requested review from lhy1024 and rleungx November 27, 2024 08:00
@okJiang
Copy link
Member Author

okJiang commented Nov 28, 2024

/retest

1 similar comment
@okJiang
Copy link
Member Author

okJiang commented Nov 29, 2024

/retest

Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.23%. Comparing base (29dfaf9) to head (736ddcd).
Report is 1 commits behind head on master.

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     
Flag Coverage Δ
unittests 76.23% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Nov 29, 2024
@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 29, 2024
@okJiang
Copy link
Member Author

okJiang commented Nov 29, 2024

/retest

@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 2, 2024
@okJiang
Copy link
Member Author

okJiang commented Dec 2, 2024

/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" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using TSOServiceName

Copy link
Member Author

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]>
Copy link
Contributor

ti-chi-bot bot commented Dec 2, 2024

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the lgtm label Dec 2, 2024
@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 2, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 2, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-11-29 08:07:56.375656367 +0000 UTC m=+796663.995310883: ☑️ agreed by lhy1024.
  • 2024-12-02 09:44:18.71916212 +0000 UTC m=+1061646.338816623: ☑️ agreed by rleungx.

@ti-chi-bot ti-chi-bot bot merged commit 3cfd66f into tikv:master Dec 2, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants