4paradigm / 4paradigm/OpenMLDB
many undeleted files in /tmp
- Langage dominant
- C++
- Étoiles
- 1.7k
- Forks
- 331
- Merge moyen
- 12 j 12 h
- PR mergées (30 j)
- 1
Description
**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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- testing-qa
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100