4paradigm / 4paradigm/OpenMLDB

many undeleted files in /tmp

Abierto
#1,958 4 comentarios 0 reacciones 1 asignado Reclamado por @aceforeverd Ver en GitHub
bug
Lenguaje dominante
C++
Estrellas
1.7k
Forks
331
Merge medio
12 d 12 h
PR fusionados (30 d)
1

Descripción

**Bug Description**

generally, if a test fails, cleanup may not executed in the test end. like
https://github.com/4paradigm/openmldb/blob/8142820cc51bcd01a276bb8b40b2d241dd624419/src/nameserver/name_server_test.cc#L579

files in `/tmp` got cleanup by strategy, however, they may produce many useless files in a short time

**Expected Behavior**

**Steps to Reproduce**

1.
2.
3.
4.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

The issue points to a specific test file, src/nameserver/name_server_test.cc at line 579, where cleanup may not execute on test failure. Start by examining that test and similar tests to understand the temporary file creation pattern. Run the test suite to reproduce the issue and see which files are left in /tmp. Determine how to ensure cleanup happens even on failure, possibly using RAII or try-catch blocks.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp
Área
testing-qa
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.