-
Notifications
You must be signed in to change notification settings - Fork 499
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
fix PD peer svc update repeatly #5015
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
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. Reviewer can indicate their review by submitting an approval review. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5015 +/- ##
==========================================
+ Coverage 56.95% 60.75% +3.79%
==========================================
Files 243 247 +4
Lines 27490 30765 +3275
==========================================
+ Hits 15658 18691 +3033
- Misses 10302 10430 +128
- Partials 1530 1644 +114
|
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.
LGTM
/cherry-pick release-1.5 |
@csuzhangxc: The label(s) In 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. |
@csuzhangxc: new pull request created to branch In 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. |
What problem does this PR solve?
in #4973, we refactored the logic of PD service update, after that the PD peer service is updated repeatly.
This is because the service get from the cache may lack the
pingcap.com/last-applied-configuration
annotation as it is deleted by a previous reconcile. also see #462tidb-operator/pkg/controller/service_control.go
Line 157 in e97423e
tidb-operator/pkg/controller/equality.go
Line 77 in e97423e
What is changed and how does it work?
Code changes
Tests
check not
pd-peer
service updated log after this fix.Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.