bug: PublishedResource updates leave previous sync controllers active
@adoi 已经在做这个了。
开始于 2026年7月20日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
When updating a PublishedResource the manager starts a replacement without stopping the controller for the previous resource version. Both controllers then reconcile the same resources
Steps To Reproduce
- Run api syncagent with an active PR
- Update the PR (in my case spec.naming was changed, but it can be an annotation change)
- Check a new controller will start for the new resource, but the previous controller doesn't stop
- You can also create a synchronized resource again and you will see that both (or multiple) controllers will process it
Expected Behaviour
One sync controller should be active per PR. A replacement should be validated, then the existing controller drained before the replacement starts
Additional Context
I reproduced this with v0.7.0.
During my testing and implementation I checked that immediate replacement can overlap controllers. Stopping before validation can interrupt synchronization, so my approach for the solution is object key tracking with validate, drain, then start sequencing
- 主要语言
- Go
- 星标
- 25
- 派生
- 30
- 平均合并
- 5 天 18 小时
- 30 天内合并 PR
- 1
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kcp-dev/api-syncagent 的其他 Issue
-
kind/bug
难度 2/5 1-3 小时 新手友好度 74/100
kcp-dev/api-syncagent#163 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
kcp-dev/api-syncagent#161 ·
-
bug: failed sync controller prevents subsequent startup retries可能已有人在做 @Sarthak-Shreshtha01 于 1 天前认领。 未关闭kind/bug
难度 3/5 1-2 天 新手友好度 20/100
kcp-dev/api-syncagent#190 · 1 条评论 ·
-
bug: dangling schema in an APIExport is neither removed nor reported可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
kcp-dev/api-syncagent#188 · 1 条评论 ·
-
kind/feature
难度 4/5 3-5 天 新手友好度 48/100
kcp-dev/api-syncagent#186 · 1 条评论 · 1 个 reaction ·
查看 kcp-dev/api-syncagent 的全部 Issue
相似的 Issue
-
duplication
难度 2/5 1-3 小时 新手友好度 78/100
openvibely/openvibely#1443 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
keyxmakerx/Chronicle#1179 ·
维护者通常 1 天内回复
-
raised-by:worker
难度 2/5 1-3 小时 新手友好度 68/100
medici-finance/assay#2486 ·
维护者通常 1 天内回复
-
area/testing kind/bug triage/needs-triage
难度 2/5 1-3 小时 新手友好度 75/100
cozystack/cozystack#4841 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
openimsdk/openim-sdk-core#1127 ·