Skip to content

Commit

Permalink
Merge pull request #60164 from kitaisreal/copy-s3-file-gcp-fallback-t…
Browse files Browse the repository at this point in the history
…o-buffer-copy

Copy S3 file GCP fallback to buffer copy
  • Loading branch information
KochetovNicolai committed Feb 22, 2024
2 parents 0e6b55a + 25bfcdd commit c3f925d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/IO/S3/copyS3File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c3f925d

Please sign in to comment.