CodeChain-io / CodeChain-io/codechain
Timer cancellation is not reliable
未關閉
bug
- 主要語言
- Rust
- 星號
- 256
- 分支
- 50
- PR 合併指標
- 30 天內沒有已合併 PR
描述
We detect whether the timer was canceled in ad-hoc ways.
Especially, if a lock is involved, the situation is not desirable.
This commit addresses that: https://github.com/CodeChain-io/codechain/commit/96f7f942f3021b4154a5da14bbd7680c1e080200
We need a regular mechanism to know fired timeout is canceled, not by ad-hoc devised ways if we can't control it.
貢獻指南
研究方向
先檢視 commit 96f7f942f3021b4154a5da14bbd7680c1e080200,並追蹤它所變更的計時器取消路徑。該 issue 未提供檔案或測試名稱;當一般機制能可靠地判定已觸發的 timeout 是否已取消,包括涉及 lock 的情況時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust
- 領域
- distributed-systems
- Issue 類型
- 重構
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100