Skip to content

Fix unordered completed parts in AWS multipart upload. #6560

Merged
bentsherman merged 3 commits intomasterfrom
fix-aws-s3-output-stream-parts-order
Nov 13, 2025
Merged

Fix unordered completed parts in AWS multipart upload. #6560
bentsherman merged 3 commits intomasterfrom
fix-aws-s3-output-stream-parts-order

Conversation

@jorgee
Copy link
Contributor

@jorgee jorgee commented Nov 13, 2025

close #6555

Completed multipart request include a collection of completed parts. This collection must be sorted by partNumber. Despite uploads are submitted sequentialy to the executor uploadParts call are concurrently and the addition of the completedParts in the list could be unsorted.

This PR sorts the list before calling the multipart complete.

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@netlify
Copy link

netlify bot commented Nov 13, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 8d3126f
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6915fb62cda12c0008cf7fc3
😎 Deploy Preview https://deploy-preview-6560--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jorgee jorgee requested a review from bentsherman November 13, 2025 09:13
Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How this is going to be tested?

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@jorgee
Copy link
Contributor Author

jorgee commented Nov 13, 2025

I have added specific tests for S3OutputStream. I thought it was tested with the general AwsS3NioTest, but data was very small and it was never using the multipart upload.

Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@bentsherman bentsherman merged commit 1020952 into master Nov 13, 2025
24 checks passed
@bentsherman bentsherman deleted the fix-aws-s3-output-stream-parts-order branch November 13, 2025 17:08
pditommaso pushed a commit that referenced this pull request Nov 28, 2025
---------

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Co-authored-by: Ben Sherman <bentshermann@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Staging foreign files to AWS S3 via multipart upload fails with error indicating part misordering

3 participants