CodeChain-io / CodeChain-io/foundry
The snapshot service must wait to join the child thread on exit
オープン
- 主要言語
- Rust
- スター
- 36
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
https://github.com/CodeChain-io/codechain/blob/18e1e80af4503cfd4d06e9514e9f88370995abda/sync/src/snapshot/service.rs#L72
Currently, the snapshot service spawns a thread to use the db but doesn't wait for the end of the child thread when it exit. It can corrupt the db.
コントリビューションガイド
調査の方向性
snapshot サービスがデータベースを使用する子スレッドを開始する sync/src/snapshot/service.rs の 72 行目付近を確認してください。終了パスがそのスレッドの終了を待機することを検証し、サービスの完了後はデータベース破損のリスクがなくなることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- database
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100