Repository navigation
Restart sync controllers that stop unexpectedly - #201
tolgayakar wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @tolgayakar. Thanks for your PR. I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
f9ee737 to
697f5e0
Compare
Signed-off-by: tolgayakar <tolga-yakar@hotmail.com>
697f5e0 to
fd698a8
Compare
Summary
A sync controller that fails after
StartControllerreturns (e.g. a cache sync timeout) was removed from the DMCM but stayed registered in the sync manager, so later reconciles skipped it and sync never resumed without restarting the agent.Sync controllers are now wrapped so that an unexpected exit triggers a reconcile of the PublishedResource. The sync manager drops the stopped entry and recreates the controller with exponential backoff (5s up to 5m), for the same UID and resourceVersion. Intentional shutdowns (cleanup, agent stop) don't trigger a retry.
This also covers the asynchronous failure path raised in the review of #191.
What Type of PR Is This?
/kind bug
Related Issue(s)
Fixes #190
Release Notes