engine: TestBlobstorFailback leaks its second engine, flaky 'Log in goroutine after test has completed' panic
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 75/100
Línea de trabajo
Empieza en pkg/local_object_storage/engine/error_test.go en TestBlobstorFailback, donde el engine se vuelve a abrir después de intercambiar las rutas de blobstor, y revisa cómo newEngineWithErrorThreshold crea los engines. Registra la limpieza del segundo engine con t.Cleanup para que sus shards se detengan antes de que termine el test. Está terminado cuando cada engine que abre el test se cierra y go test -race ./pkg/local_object_storage/engine/ pasa repetidamente sin el pánico por logs tardíos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
TestBlobstorFailback reopens the engine after swapping blobstor paths (error_test.go#L165) but never closes that second instance. Its shards' GC keeps running after the test returns, and because the engine logs through zaptest.NewLogger(t) (error_test.go#L53), a late log line panics the whole package:
panic: Log in goroutine after TestBlobstorFailback has completed: ... DEBUG started expired objects handling {"shard_id": "...", "epoch": 0}
...
github.com/nspcc-dev/neofs-node/pkg/local_object_storage/shard.(*Shard).collectExpiredObjects
github.com/nspcc-dev/neofs-node/pkg/local_object_storage/shard.(*Shard).removeGarbage
FAIL github.com/nspcc-dev/neofs-node/pkg/local_object_storage/engine
Seen once in a full go test -race ./... run on top of 90181e878b2a14f1f0273675df6e09e7a044baaf; it didn't reproduce in 20 isolated -race runs, so it depends on timing.
Likely fix: t.Cleanup(func() { require.NoError(t, e.Close()) }) (or an explicit Close) for the second engine. Other tests that use newEngineWithErrorThreshold may have the same leak.
- Lenguaje dominante
- Go
- Estrellas
- 37
- Forks
- 56
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 42
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nspcc-dev/neofs-node
-
bug hal:proposed neofs-storage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nspcc-dev/neofs-node#4325 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Check alpha scope in IRAbiertohal:proposed I4 neofs-storage S3 security U4
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
nspcc-dev/neofs-node#4280 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug neofs-storage
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
nspcc-dev/neofs-node#4333 ·
Los mantenedores suelen responder en 1 día
-
bug neofs-storage
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
nspcc-dev/neofs-node#4332 ·
Los mantenedores suelen responder en 1 día
-
EC Audit: H6: partly stored EC PUT is answered with "internal server error" and no object IDAbiertobug hal:proposed neofs-storage
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
nspcc-dev/neofs-node#4331 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de nspcc-dev/neofs-node
Issues similares
-
Pin and verify Security Insights schema in lintinsights targetPosiblemente ocupada @imshubham22apr-gif la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
gemaraproj/gemara#618 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
a2aproject/a2a-go#597 ·
Los mantenedores suelen responder en 1 día
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace charactersPosiblemente ocupada @patelshivani2283-lab la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area/networking kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
siderolabs/talos#14972 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día