Skip to content

S3 Export: EntityTooSmall Message: Your proposed upload is smaller than the minimum allowed object size #16873

@kungasc

Description

@kungasc

I do export to S3 with zstd compression and get an error:

ydb export s3 --s3-endpoint https://storage.yandexcloud.net --compression zstd

error: Unable to parse ExceptionName: EntityTooSmall Message: Your proposed upload is smaller than the minimum allowed object size.

According to the S3 documentation:

Special errors
Error Code: EntityTooSmall

Description: Your proposed upload is smaller than the minimum allowed object size. Each part must be at least 5 MB in size, except the last part.

HTTP Status Code: 400 Bad Request

Here we check that we collect enough data for multipart content:

if (Buffer.Size() < MinBytes) {

.WithMinBytes(minBytes)

But the resulting compressed size may be less than given limit

It seems that the bug was introduced in #14862

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions