mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Fix error
This commit is contained in:
parent
03ab872f5c
commit
4e91c663a6
@ -397,8 +397,11 @@ void PocoHTTPClient::makeRequestInternalImpl(
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const auto proxy_configuration = per_request_configuration();
|
ProxyConfiguration proxy_configuration;
|
||||||
for (unsigned int attempt = 0; attempt <= s3_max_redirects; ++attempt)
|
if (per_request_configuration)
|
||||||
|
proxy_configuration = per_request_configuration();
|
||||||
|
|
||||||
|
for (size_t attempt = 0; attempt <= s3_max_redirects; ++attempt)
|
||||||
{
|
{
|
||||||
Poco::URI target_uri(uri);
|
Poco::URI target_uri(uri);
|
||||||
|
|
||||||
@ -516,7 +519,6 @@ void PocoHTTPClient::makeRequestInternalImpl(
|
|||||||
LOG_TEST(log, "Redirecting request to new location: {}", location);
|
LOG_TEST(log, "Redirecting request to new location: {}", location);
|
||||||
|
|
||||||
addMetric(request, S3MetricType::Redirects);
|
addMetric(request, S3MetricType::Redirects);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -564,9 +566,9 @@ void PocoHTTPClient::makeRequestInternalImpl(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
if (status_code == 429 || status_code == 503)
|
if (status_code == 429 || status_code == 503)
|
||||||
{ // API throttling
|
{
|
||||||
|
/// API throttling
|
||||||
addMetric(request, S3MetricType::Throttling);
|
addMetric(request, S3MetricType::Throttling);
|
||||||
}
|
}
|
||||||
else if (status_code >= 300)
|
else if (status_code >= 300)
|
||||||
|
Loading…
Reference in New Issue
Block a user