mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1975] Deleted files not removed from cache #998
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#998
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 @maron546 on GitHub (Jul 5, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1975
Additional Information
Version of s3fs being used (s3fs --version)
Kernel information (uname -r)
4.18.0-348.23.1.el8_5.x86_64
GNU/Linux Distribution, if applicable (cat /etc/os-release)
/etc/fstab entry, if applicable
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
Details about issue
We have two nodes that share the same bucket througth s3fs.
Steps to reproduce the issue:
@maron546 commented on GitHub (Jul 20, 2022):
Any news?
@tb3088 commented on GitHub (Jul 20, 2022):
S3fs is not a multi-node cache-coherent filesystem. S3fs also doesn't detect edits done to the S3 bucket directly either. Right from the documentation.
The only implementation that works correctly is AWS StorageGateway acting as a NFS server.
@hereTac commented on GitHub (May 18, 2023):
In my case, I use s3fs-fuse to mount MinIO S3 with its own configuration for data lifecycle management, where data is recycled after 3 days. Unfortunately, the local cache is unable to detect when data has been deleted by MinIO itself.
@ggtakec commented on GitHub (May 20, 2023):
s3fs has two types of cache:
file object contentcache andfile object stat informationcache.I think that the reason why the deleted file in another node in this case continues to exist is because the
stat cacheremains.Try setting
stat_cache_expire,stat_cache_interval_expire,disable_noobj_cacheormax_stat_cache_sizeoptions like cache out stat cache.