Page MenuHomePhabricator

[services][blob] Implement S3 multipart upload
ClosedPublic

Authored by bartek on Nov 18 2022, 9:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 5:46 AM
Unknown Object (File)
Thu, Nov 7, 5:46 AM
Unknown Object (File)
Tue, Nov 5, 2:41 PM
Unknown Object (File)
Sun, Oct 27, 9:22 AM
Unknown Object (File)
Sep 27 2024, 2:34 PM
Unknown Object (File)
Sep 27 2024, 2:34 PM
Unknown Object (File)
Sep 27 2024, 2:34 PM
Unknown Object (File)
Sep 27 2024, 2:33 PM
Subscribers

Details

Summary

Implememted the MultipartUploadSession methods.
Implementation is based on:

Depends on D5679

Test Plan

Tested by calling these in local sandbox.
They will be tested extensively when the Put gRPC handler is implemented (have it locally, a few diffs ahead)

Diff Detail

Repository
rCOMM Comm
Branch
barthap/blob-rust
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Nov 18 2022, 10:42 AM
services/blob/src/s3.rs
132

We should avoid updating unrelated code in later diffs. If this change is necessary, it should be applied in the initial code.

The code seems to closely follow the official example code, which is good

varun added inline comments.
services/blob/src/s3.rs
89

do we plan on using this entity tag anywhere?

This revision is now accepted and ready to land.Nov 22 2022, 9:51 AM
services/blob/src/s3.rs
89

I don't know if it is necessary for uploads to work, but both C++ blob service and AWS example have this set.

132

Yeah, a formatter thing. I must've missed that.
Such issues should be gone when we have a cargo fmt set in a pre-commit hook (there's a task for that)