election: fix the PD leader switch when etcd leader fake unchanged
What problem does this PR solve?
Issue Number: close #7780.
What is changed and how does it work?
Check List
Tests
- Unit test
- Integration test
- Manual test (add detailed scripts or steps below)
Release note
None.
[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.
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 is81.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.
/hold