Logging threads are not killed when node dies

オープン
#4,360 コメント 10 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@mgmeier がすでに取り組んでいます。

2025年11月25日 から。

評価

この issue はまだ評価されていません。

説明

comp: benchmark Stale type: bug user type: internal

The following two threads are not shutdown when the node dies:

Note that link only makes sure that if the created thread fails the main thread will receive an async exception, but it does not the other way around. Instead using async and link combination, one should use withAsync and write both function using the with... pattern:

withResourceTracer :: Tracer IO RessourceStats
                   -> Int
                   -> (Async a -> IO ())
                   -> IO ()
withResournceTracer tr delayMilliseconds k = do
    withAsync resourceThread k
  where
    ...

The caller (e.g. the conitnuation k) ought to be responsible for makeing sure that the started thread fails the main thread will terminate. This is usually done with something like wait.

主要言語
Haskell
スター
3.2k
フォーク
763
平均マージ
3日 2時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntersectMBO/cardano-node のほかの issue

IntersectMBO/cardano-node の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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