Skip to content

storage: start streaming zip/index uploads, parallel directory upload#3289

Open
syphar wants to merge 3 commits intorust-lang:mainfrom
syphar:stream-upload-again
Open

storage: start streaming zip/index uploads, parallel directory upload#3289
syphar wants to merge 3 commits intorust-lang:mainfrom
syphar:stream-upload-again

Conversation

@syphar
Copy link
Copy Markdown
Member

@syphar syphar commented Apr 9, 2026

fixed version of #3287

the first two commits are the ones from the original PR (cherry-picked), the last commit is the updated functionality.

Generally I tried to go more in the direction of the s3 sdk itself. When using it with a local tempfile, it can just stream-upload it, including retries.

The upload was still hanging when testing this directly with S3 (not with minio). My current assumption is that this is a bug between the s3 sdk & s3 itself. The sdk switches to a streaming checksum calculation when uploading a local file, which doesn't complete in my tests. Easiest workaround: calculate the checksum ourselves (or disable checksums, which I don't like).

When I see the data from the updated uploaded_files metric we can see if we could actually remove our often we retry uploads, currently I believe we can drop our own retries and rely on the sdk-internal retries.

@syphar syphar self-assigned this Apr 9, 2026
@syphar syphar requested a review from a team as a code owner April 9, 2026 11:55
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Apr 9, 2026
@syphar syphar marked this pull request as draft April 9, 2026 13:47
@syphar
Copy link
Copy Markdown
Member Author

syphar commented Apr 9, 2026

checking the failing tests

@syphar syphar force-pushed the stream-upload-again branch 2 times, most recently from 541e7df to 1c3d4a3 Compare April 9, 2026 17:59
@syphar syphar marked this pull request as ready for review April 10, 2026 08:33
@syphar syphar force-pushed the stream-upload-again branch from 1c3d4a3 to f469216 Compare April 16, 2026 02:48
@rustbot

This comment has been minimized.

@syphar syphar force-pushed the stream-upload-again branch from f469216 to eb94110 Compare April 16, 2026 17:55
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 16, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants