Closed juoliii closed 4 months ago
can you share mc admin trace -v <ALIAS>
for the complete multipart upload/resume ?
can you share
mc admin trace -v <ALIAS>
for the complete multipart upload/resume ?
please see the source code client.ts , line 1698,the var oldParts, aways empty,this is a bug , and putObject can not resume upload
There is no resume functionality in multipart API.
Relying on listparts() is racy as it's point in time consistent it is not aware of concurrent PUTs on the same uploadId.
And there is no serialization between both. So relying on that to finish complete multipart can potentially lead to corruption.
You should manage what you uploaded locally if you wish to resume disparate parts.
There is no proper way to resume in S3 API which is safe on the server side. It is designed for atomic uploads.
private async uploadStream( bucketName: string, objectName: string, headers: RequestHeaders, body: stream.Readable, partSize: number, ): Promise {
// A map of the previously uploaded chunks, for resuming a file upload. This
// will be null if we aren't resuming an upload.
const oldParts: Record<number, Part> = {}
in the source code , oldParts aways empty