Skip to content

Commit

Permalink
Merge pull request #60285 from ClickHouse/cherrypick/23.8/c3f925da0ae…
Browse files Browse the repository at this point in the history
…b3765c03a2196b0fcb02ac97be39b

Cherry pick #60164 to 23.8: Copy S3 file GCP fallback to buffer copy
  • Loading branch information
robot-clickhouse committed Feb 22, 2024
2 parents 73050a3 + c3f925d commit 9938cf6
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 @@ -698,7 +698,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 9938cf6

Please sign in to comment.