bug: failed sync controller prevents subsequent startup retries
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 20/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Stack technique
- go
- Domaine
- distributed-systems
Piste de recherche
Review the DynamicMultiClusterManager.runnables, syncCancels, and ensureSyncController entry points to understand controller startup and cache sync timeout handling. Reproduce a cache sync timeout, then verify synchronization resumes after API access is restored without restarting the agent.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
When a sync controller fails during startup, it is removed from DynamicMultiClusterManager.runnables, but its entry remains in the sync manager's syncCancels map.
Subsequent calls to ensureSyncController() for the same PublishedResource UID/resourceVersion find this stale entry and return an empty result and nil error without creating a replacement controller.
The controller has stopped, but the sync manager still considers it present.
Steps To Reproduce
- Run the agent with an enabled PublishedResource and verify that an annotation update on an existing object in kcp propagates to the service cluster.
- Restart the agent with a temporary proxy that returns HTTP 503 for LIST/WATCH requests to that resource in the service cluster. Keep API discovery and other API requests available.
- Keep those requests blocked for longer than the controller's cache sync timeout. In this test, requests were blocked for 180 seconds.
- Observe
Controller failed to startwith a cache sync timeout error. - Restore API access without restarting the agent or modifying the PublishedResource.
- Update the annotation on the same object in kcp.
- Observe that the update does not propagate to the service cluster and no replacement sync controller is created. Confirm that the PublishedResource's resourceVersion is unchanged.
- Restart the agent and observe that the pending annotation update propagates.
Expected Behaviour
When a sync controller fails during startup, the sync manager should clear the failed controller's registration and retry startup with backoff.
Once API access is restored, synchronization should resume without restarting the agent or modifying the PublishedResource.
Additional Context
Related: #182 concerns old controllers remaining active after PublishedResource updates. This report concerns failed controllers preventing subsequent startup retries.
- Langage dominant
- Go
- Étoiles
- 25
- Forks
- 31
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de kcp-dev/api-syncagent
-
bug: default naming for local object fails on cluster-scoped published resourcesPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertekind/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
kcp-dev/api-syncagent#163 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
kcp-dev/api-syncagent#161 ·
-
bug: dangling schema in an APIExport is neither removed nor reportedPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
kcp-dev/api-syncagent#188 · 1 commentaire ·
-
kind/feature
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
kcp-dev/api-syncagent#186 · 1 commentaire · 1 réaction ·
-
bug: PublishedResource updates leave previous sync controllers activePeut-être à nouveau libre @adoi l’a pris il y a 89 jours, et aucune pull request n’est ouverte. Ouvertekind/bug
kcp-dev/api-syncagent#182 · 1 commentaire · 1 personne assignée ·
Toutes les issues de kcp-dev/api-syncagent
Issues similaires
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:session-state issue-rating: 🦞 diamond lobster no-stale P2
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
openclaw/wacli#503 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 81/100
apache/rocketmq-dashboard#6895 ·
Les mainteneurs répondent en général sous 3 jours
-
agent-butler-finding chore
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
jordansmall/spindrift#5466 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1507 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 87/100
777genius/agent-notifications#490 ·
Les mainteneurs répondent en général sous 1 jour