CodeChain-io / CodeChain-io/codechain

Terminate gracefully

オープン
#1,987 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。