mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[PR #2341] [MERGED] Force disk free space recovery in test(for only macos) #2488
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2341
Author: @ggtakec
Created: 10/7/2023
Status: ✅ Merged
Merged: 11/10/2023
Merged by: @gaul
Base:
master← Head:fix_add_sync_test📝 Commits (1)
07c57c1Force disk free space recovery in test(for only macos)📊 Changes
1 file changed (+19 additions, -4 deletions)
View changed files
📝
test/integration-test-main.sh(+19 -4)📄 Description
Relevant Issue (if applicable)
#2320
Details
In the test code that was pointed out in #2320, there was still a problem with the
test_multipart_mixtest on macos12.Background
For macos, I was forcing the test file size to zero at the beginning of the
test_multipart_mix, because this was to synchronize the free space area.But it was detected that the free space may not be recovered immediately after deleting a file.
(Free space recovery may not be reflected in the results of the
statvfsordfcommands.)I still don't know why this delay occurs.
Purpose
The code trying to recover free space on the current disk wasn't good enough.
The
test_multipart_mix testrepeatedly creates files of several tens MB.In rare cases, you will run out of disk space and the test will fail (on macos12).
To reliably reproduce this, you can run only the
test_multipart_mixtest function repeatedly(dozens of times) on macos12.Changing test code
Forces the test files and its cache files size to zero, and deletes them upon completion of the
test_multipart_mixtest.And call
synccommand for disk.So far, this fix has not caused any shortage of disk space (problem where free space is not restored).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.