mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #390] S3 bucket that creates Lambda events generates 2 #206
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#206
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 @graysoncash on GitHub (Apr 8, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/390
When I drop a file into my S3 bucket through an s3fs mount and events for my Lambda function get generated, there's always 2 identical ones that are created. Otherwise, uploading the file through the S3 gui just creates 1 event.
Setup isn't anything different from the instructions.
@ggtakec commented on GitHub (Apr 10, 2016):
@cashgl
When s3fs makes(updalods) the file(object) to S3, first s3fs makes zero file on S3 and second uploads it.
Thus it is probably the two events will generate.
This behavior is due to FUSE.
FUSE always creates a zero file or sets the file size to zero just before FUSE copies the file.
s3fs more than a FUSE-based, which can not be avoided.
Regards,
@ingageco commented on GitHub (Aug 25, 2016):
@ggtakec - So can we assume that when the second event fires, the upload is 100% complete?
@ingageco commented on GitHub (Aug 25, 2016):
I'm dealing with large video files, so that's the context of my question.
@ggtakec commented on GitHub (Sep 19, 2016):
@ingageco
The first event(HTTP PUT) is for creating a file as 0 size.
The second's PUT event means that s3fs starts to upload the file contents, it does not finish to upload.probablyprobablyprobably
Probably, your application(ex. cp command) will be waited to finish to upload all of file constents.
Regards,
@ingageco commented on GitHub (Sep 20, 2016):
@ggtakec Thank you for clarifying!