Skip to content

Commit 3ca78f0

Browse files
Added retries for code 503 from solomon (#18886)
1 parent 625acf6 commit 3ca78f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/library/yql/providers/solomon/solomon_accessor/client/solomon_accessor_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class TSolomonAccessorClient : public ISolomonAccessorClient, public std::enable
383383

384384
auto retryPolicy = IHTTPGateway::TRetryPolicy::GetExponentialBackoffPolicy(
385385
[](CURLcode, long httpCode) {
386-
if (httpCode == 429 /*RESOURCE_EXHAUSTED*/) {
386+
if (httpCode == 429 /* RESOURCE_EXHAUSTED */ || httpCode == 503 /* shard in not ready yet */) {
387387
return ERetryErrorClass::ShortRetry;
388388
}
389389
return ERetryErrorClass::NoRetry;

0 commit comments

Comments
 (0)