Merge pull request #60164 from kitaisreal/copy-s3-file-gcp-fallback-to-buffer-copy

Copy S3 file GCP fallback to buffer copy
This commit is contained in:
Nikolai Kochetov 2024-02-22 12:53:15 +01:00 committed by GitHub
commit c3f925da0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -746,7 +746,12 @@ namespace
break;
}
if (outcome.GetError().GetExceptionName() == "EntityTooLarge" || outcome.GetError().GetExceptionName() == "InvalidRequest" || outcome.GetError().GetExceptionName() == "InvalidArgument")
if (outcome.GetError().GetExceptionName() == "EntityTooLarge" ||
outcome.GetError().GetExceptionName() == "InvalidRequest" ||
outcome.GetError().GetExceptionName() == "InvalidArgument" ||
(outcome.GetError().GetExceptionName() == "InternalError" &&
outcome.GetError().GetResponseCode() == Aws::Http::HttpResponseCode::GATEWAY_TIMEOUT &&
outcome.GetError().GetMessage().contains("use the Rewrite method in the JSON API")))
{
if (!supports_multipart_copy)
{