CodeChain-io / CodeChain-io/codechain
Terminate gracefully
未關閉
- 主要語言
- Rust
- 星號
- 256
- 分支
- 50
- PR 合併指標
- 30 天內沒有已合併 PR
描述
The current way of terminating Foundry is to drop all resources at the end of run_node function.
Since we didn't care about the order of drop, sometimes Foundry panics in the termination process since other resources are dropped without expectation.
In the worst case, the database can be corrupted in the termination process.
貢獻指南
研究方向
首先追蹤 run_node 結尾的終止路徑,包括資源如何釋放,以及資料庫如何參與其中。確定必要的釋放順序,並檢查現有的關閉相關測試或進入點(如果有)。當終止程序能在沒有 panic 的情況下完成,且不會有資料庫損毀的風險時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust
- 領域
- backend, databases
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100