aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhiddenpath <hiddenpath@yandex-team.com>2025-02-17 17:32:04 +0300
committerhiddenpath <hiddenpath@yandex-team.com>2025-02-17 18:02:04 +0300
commit5bf080f68ee290850e430342c635cb62859cad61 (patch)
tree1839d5ea62d4259f76513cfcd160b9a7e29f4703
parent62f206670154d466db83d498ab9075d3cad7bd43 (diff)
downloadydb-5bf080f68ee290850e430342c635cb62859cad61.tar.gz
YT-23616: Do not rely on 4xx http codes
commit_hash:180c7545c76e0286472079ec129fd15f2e140aa9
-rw-r--r--yt/cpp/mapreduce/common/retry_lib.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/yt/cpp/mapreduce/common/retry_lib.cpp b/yt/cpp/mapreduce/common/retry_lib.cpp
index 7cbcabef08..53216bd3f8 100644
--- a/yt/cpp/mapreduce/common/retry_lib.cpp
+++ b/yt/cpp/mapreduce/common/retry_lib.cpp
@@ -203,13 +203,9 @@ static bool IsRetriableChunkError(const TSet<int>& codes)
static TMaybe<TDuration> TryGetBackoffDuration(const TErrorResponse& errorResponse, const TConfigPtr& config)
{
- int httpCode = errorResponse.GetHttpCode();
- if (httpCode / 100 != 4 && !errorResponse.IsFromTrailers()) {
- return config->RetryInterval;
- }
-
auto allCodes = errorResponse.GetError().GetAllErrorCodes();
using namespace NClusterErrorCodes;
+
if (allCodes.count(NSecurityClient::RequestQueueSizeLimitExceeded) ||
allCodes.count(NRpc::RequestQueueSizeLimitExceeded))
{