mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #337] Files appear empty after reboot, issue between del_cache and stat cache #175
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#175
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 @diasjorge on GitHub (Jan 20, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/337
We were having issues with s3fs after rebooting the servers. The files would appear mounted but when checked with cat for instance they'd appear empty.
To start s3 we use:
/usr/bin/s3fs -o use_cache=/var/cache/s3fs -o del_cache -o ensure_diskfree=1024 -o allow_other -o nonempty -o iam_role=ROLE BUCKET FOLDER
After some debugging we noticed that If we kill s3fs and start it again then the problem always happens, which explains the issue happening on reboot.
Then if we delete the folder /var/cache/s3fs/.FOLDER.stat and start s3fs again the problem is gone.
It appears to me that when del_cache is used and s3fs is restarted then it presents the metainformation about the files stored in .stat but they files are not present in the cache and so they are empty since they're not fetched again.
It'd seem to me that when using del_cache the stat cache should be deleted as well.
@ggtakec commented on GitHub (Feb 6, 2016):
@diasjorge
I fixed this problem by #352.
#352 added removing stat cache directory at starting/exiting s3fs if del_cache option is specified.
Please try to use and check it.
I close this issue, but if you find a problem please reopen this issue.
Thanks in advance for your help.