mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[PR #2783] [MERGED] Changed to not call PreventStatCacheExpire #2786
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#2786
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/2783
Author: @ggtakec
Created: 1/11/2026
Status: ✅ Merged
Merged: 2/6/2026
Merged by: @gaul
Base:
master← Head:fix/stat_expire📝 Commits (1)
78ace44Changed to not call PreventStatCacheExpire📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
src/s3fs.cpp(+10 -2)📄 Description
Relevant Issue (if applicable)
n/a
Details
Current s3fs is preventing removing the stat cache data during rmdir/mkdir operations, but I found it has a problem.
Thus I have commented out this prevention measure.
(I will restore it after correcting the problematic processing, but for now I will not call it.)
Normally, when s3fs retrieves stat data for files (and directories), it checks the expiration date of the stat cache if one exists.
For current rmdir/mkdir, bypass the cache out check.
However, the following issue was discovered with this logic.
That is if there is cached data that has already passed its expiration date, processing will continue without caching that data out.
This could result in inconsistencies.
This issue is thought to have caused the test_truncate_cache test to fail during the cleanup process (directory deletion) after the test is completed.
Further observation
This issue may have caused test times on macOS and other systems to be extremely long.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.