bugfix: endpoints controller track resource version conrrectly#127417
Conversation
|
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The DetailsInstructions 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 kubernetes-sigs/prow repository. |
|
@aojea: GitHub didn't allow me to request PR reviews from the following users: mbrancato. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn 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 kubernetes-sigs/prow repository. |
The endpoints controller store the resource version of the previous Endpoints objects to avoid issues related to stale information on the cache. However, there can be update operations that succeed without increasing the resource version, causing the endpoints controller to declare stale the existing Resource Version and stopping the Endpoints to be updated. Co-Author-By: Quan Tian <quan.tian@broadcom.com> Co-Author-By: Yang Yang <yyyng@amazon.com>
0c03ad7 to
dba4e42
Compare
|
I'm fuzzy on the things that can trigger a no-op write, but the resourceVersion comparison looks right to me |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 6cde9035b13ab0b9ea6aaf0ecf7f4255a514f6a3 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, M00nF1sh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…of-#127417-origin-release-1.28 Automated cherry pick of #127417: bugfix: endpoints controller track resource version
…of-#127417-origin-release-1.29 Automated cherry pick of #127417: bugfix: endpoints controller track resource version
…of-#127417-origin-release-1.30 Automated cherry pick of #127417: bugfix: endpoints controller track resource version
…of-#127417-origin-release-1.31 Automated cherry pick of #127417: bugfix: endpoints controller track resource version
The endpoints controller store the resource version of the previous Endpoints objects to avoid issues related to stale information on the cache since #125675
However, there can be update operations that succeed without increasing the resource version, causing the endpoints controller to declare stale the existing Resource Version and stopping the Endpoints to be updated.
Co-Author-By: Quan Tian quan.tian@broadcom.com
Co-Author-By: Yang Yang yyyng@amazon.com
/kind bug
/kind regression
Fixes #126578, #127370