Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Logging threads are not killed when node dies

Abierto
#4,360 10 comentarios 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@mgmeier ya está trabajando en esto.

Desde el 25/11/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Haskell
Estrellas
3.2k
Forks
760
Merge medio
2 d 7 h
PR fusionados (30 d)
21

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de IntersectMBO/cardano-node

Todos los issues de IntersectMBO/cardano-node

Issues similares

Más issues de Haskell

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.