已关闭
生命周期终态清理路径没有单一 owner #3
zhaoyifan28创建于 4月23日关闭于 7月6日
4月23日 添加了label:sig/sig-CloudNative
openeuler-ci-bot
4月23日 评论:
4月23日 评论:
Welcome To openEuler Community
Hey @zhaoyifan28 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: sig-CloudNative ,
and any of the maintainers: @duguhaotian, @jimmieme, @lu-wei-army, @taotao-sauce, @weibaohui, @wonleing, @yangzhao_kl, @zmr_2020 ,
and any of the committers: @liuxu180400617 .


zhaoyifan28
7月6日 评论:
7月6日 评论:
/close


7月6日 issue状态由 待办的 改变为 已完成
7月6日 关闭了 issue
问题:
Delete并不等待真正清理完成就返回成功。Delete、Pause、创建后挂起的后台 waiter 都可能触发Stop / Close / snapshot.Remove / ReleaseCID,导致清理职责重叠。关键证据:
Close、snapshot.Remove、ReleaseCID:Delete只是在 map 中删除对象,然后异步Stop,并立即释放 CID:Pause也会在 defer 中执行Stop、Close、snapshot.Remove:建议修复方向:
Delete和Pause需要决定是同步完成终态清理后返回,还是只触发状态迁移但对外明确标记为异步。ReleaseCID必须和最终成功清理绑定,不能被多个路径重复触发。