Skip to content

Commit

Permalink
Backport #60164 to 23.12: Copy S3 file GCP fallback to buffer copy
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-clickhouse committed Feb 22, 2024
1 parent 376af59 commit bff4838
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 @@ -731,7 +731,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 bff4838

Please sign in to comment.