-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large File Upload Issue (Manifest File of ZERO bytes) #348
Comments
@azeem-sajid-confiz Swift doesn't have a multipart upload feature like S3 does (I think that's what you were expecting). There are two modes of uploading large files: Dynamic Large Objects and Static Large Objects (https://docs.openstack.org/swift/latest/overview_large_objects.html). From your description -- and in the sample code -- the objects are uploaded as a dynamic large object (a 0-sized manifest with a special header and prefixed segments). The SLO (static large object) way of uploading a large object is preferred (as it avoids the issues of object listings being eventually consistent, for one). In both cases, though, there will be the segments (either in the same container or a segment container) and a manifest object, which is either 0-sized (DLO) or contains a JSON description of the large object. Hope this helps! |
@timuralp However, for deletion, I was not able to find a proper API call to delete the blob. Could you please share some pointers on this? Thanks a lot! |
@azeem-sajid-confiz If you're using static large objects, you can use the |
Hi,
I used the code in this section (Upload Large Files) for uploading a file of size 6 GB. The segments (i.e. 2 segments) uploaded successfully along with the manifest file (using
put_object_manifest
as described in the above link).The sizes of segments is fine. But, the manifest file is of ZERO bytes.
So, after this, I had three files on i.e. two segment (suffixed) files and a manifest file.
The expected behavior should be a single file (without segment files) after the successful upload.
Questions:
How can I upload a large file successfully?
What changes I'd be needing to achieve this in that piece of code?
Thanks!
The text was updated successfully, but these errors were encountered: