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)
Mon, Apr 8, 5:30 PM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:18 AM
Unknown Object (File)
Tue, Apr 2, 6:31 AM
Unknown Object (File)
Mar 11 2024, 8:25 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #18590)

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 ↗(On Diff #18590)

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 ↗(On Diff #18590)

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

132 ↗(On Diff #18590)

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)