mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2684] [MERGED] Fixed s3fs_flush to update pending meta for macos and nomultipart mode #2709
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#2709
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/2684
Author: @ggtakec
Created: 6/8/2025
Status: ✅ Merged
Merged: 6/8/2025
Merged by: @gaul
Base:
master← Head:fix/flush_release📝 Commits (1)
c9f22f8Fixed s3fs_flush to update pending meta for macos and nomultipart mode📊 Changes
1 file changed (+13 additions, -1 deletions)
View changed files
📝
src/s3fs.cpp(+13 -1)📄 Description
Relevant Issue (if applicable)
#2683
Details
In MacOS test, I found that
test_update_time_cp_poften failed when thenomultipartoption was specified.(This issue has only been confirmed on MacOS so far.)
The reason for this is that when creating a new file, the pending Meta header information cannot be updated in time by
s3fs_releaseprocessing.Currently,
s3fs_releaseuploads(flushes) the file contents and updates the pending Meta header information immediately afterwards, but there seems to be a case during this short period when file attributes are obtained.The reason that
s3fs_releaseperforms Flush and Meta updates is because in the past there have been cases wheres3fs_releasewas called withouts3fs_flushbeing called. So that this processing needs to continue.Also, since
fusedoes not wait for the result ofs3fs_releaseoperation before proceeding with the next operation, it appears that the attribute retrieval is called immediately after callings3fs_release.Therefore, I have keeped to process
s3fs_release, and added the processing to update the Meta header information ins3fs_flushas same as it.I hope that merging #2683 and this PR will reduce the number of test failures on MacOS.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.