4paradigm / 4paradigm/OpenMLDB

many undeleted files in /tmp

Open
#1,958 4 comments 0 reactions 1 assignee Claimed by @aceforeverd View on GitHub
bug
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
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.

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.