v.23.4Improvement

Fix crash in AWS S3 SDK caused by large max_single_part_upload_size setting

If a user set max_single_part_upload_size to a very large value, it can lead to a crash due to a bug in the AWS S3 SDK. This fixes #47679. #48816 (Alexey Milovidov).
Fix a crash caused by setting max_single_part_upload_size to a very large value due to a bug in the AWS S3 SDK.

Why it matters

This fix addresses a stability issue where configuring max_single_part_upload_size with an excessively large value could trigger a crash in ClickHouse when interacting with AWS S3 storage. It improves the reliability of large part uploads to S3.

How to use it

To benefit from this fix, users can continue setting max_single_part_upload_size as needed without risking a crash. Ensure your ClickHouse version includes this patch to avoid the issue.