4paradigm / 4paradigm/OpenMLDB

many undeleted files in /tmp

Đang mở
#1,958 4 bình luận 0 reaction 1 người được giao Được @aceforeverd nhận Xem trên GitHub
bug
Ngôn ngữ chính
C++
Star
1.7k
Fork
331
Merge trung bình
12 ngày 12 giờ
Pull request đã merge (30 ngày)
1

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp
Lĩnh vực
testing-qa
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.