Multipart upload doesn't throw or reject when max upload parts exceeded #5964
Labels
bug
This issue is a bug.
investigating
Issue is being investigated and/or work is in progress to resolve the issue.
p2
This is a standard priority issue
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
queued
This issues is on the AWS team's backlog
Checkboxes for prior research
Describe the bug
Exceeding
Upload.MAX_PARTS
doesn't throw an exception completely outSDK version number
@aws-sdk/client-s3@3.549.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.12.0
Reproduction Steps
Observed Behavior
The object size is actually exactly 5 MiB x 10,000 parts: 52428800000 bytes. Notably, it also correctly completes the multi-part upload, so it really does look like it completes.
I also tested with
await upload.done().catch(err => {throw err})
in case of promise being rejected; it has the same problem.Expected Behavior
https://github.com/aws/aws-sdk-js-v3/blob/v3.549.0/lib/lib-storage/src/Upload.ts#L195 should throw an exception out when the parts max is exceeded.
Possible Solution
I'm not a node expert, but I suspect it has something to do with throwing an error inside an async function.
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: