mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #876] Writing/reading files by 2 programs #510
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#510
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 @nikt12 on GitHub (Dec 18, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/876
Version of s3fs being used (s3fs --version)
V1.84
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
2.9.8
opensuse
@nikt12 commented on GitHub (Dec 21, 2018):
@ggtakec What do you think about this issue?
@gaul commented on GitHub (Jan 4, 2019):
s3fs does not flush a file until it is closed. Generally there is high latency from the s3fs client to the S3 server so this batching improves performance. You could try adding an
fsync/fdatasyncwhich should flush to S3. However multi-client workloads are not well-supported; NFS is a better choice when you need fine-grained coordination.@ggtakec commented on GitHub (Mar 29, 2019):
I'm sorry for my late reply.
s3fs uploads a file to S3 when it flushes (closes) to the file.
That is, when the second program opens the file, the file has not yet been updated. Therefore the old contents are displayed.
If the first program closes the file, the file contents will be uploaded and updated.
In s3fs,
only later attempts will be succeededmeansthe last process to close(flush).Also, as @gaul stated, I think that there are cases where s3fs does not provide enough care.
I will close this, but if the problem persists, please reopen or post a new issue.
Thanks in advance for your assistance.