bug: failed sync controller prevents subsequent startup retries
@Sarthak-Shreshtha01 đang làm issue này rồi.
Từ ngày 8/10/2026.
- #191 của @Sarthak-Shreshtha01 — đang mở
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 25
- Fork
- 31
- Merge trung bình
- 5 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kcp-dev/api-syncagent
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
kcp-dev/api-syncagent#163 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kcp-dev/api-syncagent#161 ·
-
bug: dangling schema in an APIExport is neither removed nor reportedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
kcp-dev/api-syncagent#188 · 1 bình luận ·
-
kind/feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
kcp-dev/api-syncagent#186 · 1 bình luận · 1 reaction ·
-
bug: PublishedResource updates leave previous sync controllers activeCó thể làm lại được @adoi đã nhận 83 ngày trước và không có pull request nào đang mở. Đang mởkind/bug
kcp-dev/api-syncagent#182 · 1 bình luận · 1 người được giao ·
Tất cả issue của kcp-dev/api-syncagent
Issue tương tự
-
raised-by:reviewer
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
medici-finance/assay#2681 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(icons): add [solidping]Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
homarr-labs/dashboard-icons#2939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refine bluetooth scan listĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
AvengeMedia/DankMaterialShell#3761 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: clarify replacement for outdated Terms of Service URL in readme.mdCó thể đã có người làm @mohitjoshi-hey đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 66/100