mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #2210] S3 version enabled receives two versions for new objects. First 0 bytes, second the actual data #1121
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#1121
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 @james-crocker on GitHub (Jul 10, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2210
Additional Information
Version of s3fs being used (
s3fs --version)V1.86 (commit:unknown)
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)2.9.9-3
Kernel information (
uname -r)5.15.0-1039-aws
GNU/Linux Distribution, if applicable (
cat /etc/os-release)NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
How to run s3fs, if applicable
[] command line
[x] /etc/fstab
hank-ai-clients:/abc.com /sftp-client-push/abs-kc.com/aws-s3 fuse.s3fs _netdev,allow_other,use_cache=/tmp,passwd_file=/etc/s3fs-passwd/client-abc.com,umask=002,uid=1004,gid=1001 0 0
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Not in debug mode. journalctl --since today | grep s3fs returned null result.
Details about issue
The s3fs mounted S3 bucket is a versioned bucket. When copying a new, non zero byte, non-existent object (file) to the mount point an object is successfully created in the bucket. However, unexpectedly, two versions are created. The first version is a 0 byte object and the second (most recent) is the non-zero byte version of the file.
Our expectation was that a single, non-zero byte version of the file(object) would be created for an object which had no previous existence in the versioned S3 bucket.
@gaul commented on GitHub (Jul 12, 2023):
Fixed in the latest version.