mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #2233] [Question] Determining if s3fs has completed syncing files to S3 #1134
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#1134
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 @ju2wheels on GitHub (Jul 26, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2233
Hi, im trying to find more technical information on how to figure out if s3fs is done syncing any file changes to S3.
For my usage, im mounting a bucket to a folder, making some changes to the contents of that folder and then i want to unmount the s3fs mount and shutdown my instance once im sure s3fs is done syncing.
The only two methods i can think of coming up with for doing this is a combination of the following:
/tmp/s3fs/.<bucket-name>.mirror/<random file name>.tmp.This seems to be the best way i could come up with given that i cany find documentation on how to check the sync status unless i missed it somewhere, but i still feel like this potentially a sync/unmount race condition waiting to happen even if i combine the two approaches above.
Are there any other options here?
@gaul commented on GitHub (Jul 28, 2023):
s3fs does not asynchronously sync files. During a call to
fsyncorclose, the object is synchronously uploaded to S3. Thus if the calls succeed then the file exists in S3.