pd icon indicating copy to clipboard operation
pd copied to clipboard

election: fix the PD leader switch when etcd leader fake unchanged

Open JmPotato opened this issue 1 year ago • 3 comments

What problem does this PR solve?

Issue Number: close #7780.

What is changed and how does it work?

Check the lessor ID and Raft term during lease keepalive to sense the etcd leader switch as soon as possible.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)

Release note

None.

JmPotato avatar Feb 22 '24 15:02 JmPotato

[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 /cc @reviewer in the comment. After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.

ti-chi-bot[bot] avatar Feb 22 '24 15:02 ti-chi-bot[bot]

Codecov Report

Merging #7846 (06ec7dd) into master (d6d9fea) will increase coverage by 0.03%. Report is 2 commits behind head on master. The diff coverage is 81.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7846      +/-   ##
==========================================
+ Coverage   73.51%   73.55%   +0.03%     
==========================================
  Files         432      432              
  Lines       47913    47964      +51     
==========================================
+ Hits        35225    35278      +53     
- Misses       9642     9648       +6     
+ Partials     3046     3038       -8     
Flag Coverage Δ
unittests 73.55% <81.81%> (+0.03%) :arrow_up:

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

codecov[bot] avatar Feb 22 '24 17:02 codecov[bot]

/hold

JmPotato avatar Feb 23 '24 07:02 JmPotato