mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1994] [CLOSED] Fixed a test_truncate_cache failure on macos #2290
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#2290
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/1994
Author: @ggtakec
Created: 7/22/2022
Status: ❌ Closed
Base:
master← Head:fix_about_list_bucket📝 Commits (1)
03bcddbFixed a test_truncate_cache failure on macos📊 Changes
1 file changed (+7 additions, -6 deletions)
View changed files
📝
src/s3fs_xml.cpp(+7 -6)📄 Description
Relevant Issue (if applicable)
#1987
Details
About #1987, I found out where
test_truncate_cachesometimes fails on macos.It happens with
rm -rf $ (seq 2)intest_truncate_cachetest.When deleting two directories,
s3fs_rmdirfails because sometimes files remain in the directories.When FUSE receives a system call to delete a directory, it lists the files in the directory.
It then deletes each of the listed files in turn(
s3fs_unlink), deletes them all, and then callss3fs_rmdir.For macos(which may also happen on Linux?), any files were missing from the list of files in this directory at deleting each one.
The location of the problem has been identified and it has been fixed (as much as possible) with this PR code.
(However, it remains unclear why the value of that buffer changed.)
This PR should be applied early to avoid failing on macos tests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.