aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/common/retry_lib.cpp
diff options
context:
space:
mode:
authorhiddenpath <hiddenpath@yandex-team.com>2025-02-17 10:07:07 +0300
committerhiddenpath <hiddenpath@yandex-team.com>2025-02-17 10:32:13 +0300
commit9295facf69eb8c6ee7bbb5bdfd55aac74c850432 (patch)
tree5d06860b576b3fe45467ba669a7dd0f7e68f5128 /yt/cpp/mapreduce/common/retry_lib.cpp
parent8c9859fab05712911b835114e4a6c8ad57a36834 (diff)
downloadydb-9295facf69eb8c6ee7bbb5bdfd55aac74c850432.tar.gz
YT-23616: Do not rely on specific http codes upon request retry
commit_hash:6567d772f1cc5091a75ad5249c2a97a73dc5e6cd
Diffstat (limited to 'yt/cpp/mapreduce/common/retry_lib.cpp')
-rw-r--r--yt/cpp/mapreduce/common/retry_lib.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt/cpp/mapreduce/common/retry_lib.cpp b/yt/cpp/mapreduce/common/retry_lib.cpp
index 826247cb57..7cbcabef08 100644
--- a/yt/cpp/mapreduce/common/retry_lib.cpp
+++ b/yt/cpp/mapreduce/common/retry_lib.cpp
@@ -210,9 +210,8 @@ static TMaybe<TDuration> TryGetBackoffDuration(const TErrorResponse& errorRespon
auto allCodes = errorResponse.GetError().GetAllErrorCodes();
using namespace NClusterErrorCodes;
- if (httpCode == 429
- || allCodes.count(NSecurityClient::RequestQueueSizeLimitExceeded)
- || allCodes.count(NRpc::RequestQueueSizeLimitExceeded))
+ if (allCodes.count(NSecurityClient::RequestQueueSizeLimitExceeded) ||
+ allCodes.count(NRpc::RequestQueueSizeLimitExceeded))
{
// request rate limit exceeded
return config->RateLimitExceededRetryInterval;