mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2128] Download and delete a file at the same time will eventually not release the cache space #1084
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#1084
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?
Originally created by @huntersman on GitHub (Mar 14, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2128
Additional Information
Version of s3fs being used (
s3fs --version)V1.91
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)2.9.2
Kernel information (
uname -r)5.4.213-1.el7.elrepo.x86_64
GNU/Linux Distribution, if applicable (
cat /etc/os-release)CentOS 7
How to run s3fs, if applicable
s3fs demo /root/demo -o passwd_file=${HOME}/.passwd-s3fs -o url=http://ip -o use_path_request_style -o noxmlns -o dbglevel=error -o default_acl=public-read -o logfile=/var/log/s3fs.log -o allow_other -o multireq_max=500 -o nocopyapi -o use_cache="/root/s3fs"Details about issue
rm -f /root/demo/2GB.fuse_hiddenfile is generated by Linux..fuse_hiddenis deleted automatically, but the cache space is still 2 GB.@ggtakec commented on GitHub (Mar 16, 2023):
@huntersman Thanks for PR.
But I would like to know more information about
"the cache space is still 2 GB."Does this mean there are 2GB files left under the
/root/s3fsdirectory?There is no direct relationship between the
.fuse_hiddenfile and s3fs' own cache file, so I'm wondering.@huntersman commented on GitHub (Mar 17, 2023):
There is no 2GB file in cache directory, neither in
.demo.statand.demo.mirror. By the way,rm -rf /root/s3fsdoes not free the space, I guess the file is still using by s3fs. The result ofdf -hshows that the space is not freed. And I notice that there is an error in the log.After I kill s3fs, the space will be freed.
@ggtakec commented on GitHub (Mar 19, 2023):
@huntersman
I understood the cause of this problem.
FUSE temporarily changes the file name to
/.fuse_hiddenXXXYYYif the open file is deleted by another process etc.When the open file is closed, this temporarily renamed file is also deleted.
Above case, s3fs did not rename the cache for large files, but deleted them.(but, renamed except for large files)
This may have been leaked in past fixes.
I created #2135. (It will be closed because the fix is different than the #2130 you submitted.)
If possible, please try #2135 code.
Thanks in advance for your assistance.
@huntersman commented on GitHub (Mar 20, 2023):
@ggtakec Thank you very much, I test it and it worked. I will close the issue.
@ggtakec commented on GitHub (Mar 21, 2023):
@huntersman Thanks for checking that code.
PR #2135 will be merged soon.