Update StorageS3Settings.cpp

This commit is contained in:
Alexey Milovidov 2023-04-16 08:53:52 +03:00 committed by GitHub
parent 1174f4dcbe
commit 8e0b1eae69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,8 @@ void S3Settings::RequestSettings::PartUploadSettings::updateFromSettingsImpl(con
if (!if_changed || settings.s3_max_single_part_upload_size.changed)
max_single_part_upload_size = settings.s3_max_single_part_upload_size;
/// AWS S3 SDK library has a bug. It is using std::stringstream (which is a major offense).
/// LLVM libc++ has a bug. It does not allow std::stringstream to work for large strings.
/// AWS S3 SDK library has a bug. It is using std::*stream (which is a major offense).
/// LLVM libc++ has a bug. It does not allow std::*stream to work for large strings.
if (max_single_part_upload_size >= 2_GiB)
throw Exception(ErrorCodes::INVALID_SETTING_VALUE, "Uploading parts of 2 GiB or larger is not supported due to a bug in AWS and LLVM. Lower the value of `s3_max_single_part_upload_size` setting.");