Skip to content

Commit 5bf080f

Browse files
author
hiddenpath
committed
YT-23616: Do not rely on 4xx http codes
commit_hash:180c7545c76e0286472079ec129fd15f2e140aa9
1 parent 62f2066 commit 5bf080f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

yt/cpp/mapreduce/common/retry_lib.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,9 @@ static bool IsRetriableChunkError(const TSet<int>& codes)
203203

204204
static TMaybe<TDuration> TryGetBackoffDuration(const TErrorResponse& errorResponse, const TConfigPtr& config)
205205
{
206-
int httpCode = errorResponse.GetHttpCode();
207-
if (httpCode / 100 != 4 && !errorResponse.IsFromTrailers()) {
208-
return config->RetryInterval;
209-
}
210-
211206
auto allCodes = errorResponse.GetError().GetAllErrorCodes();
212207
using namespace NClusterErrorCodes;
208+
213209
if (allCodes.count(NSecurityClient::RequestQueueSizeLimitExceeded) ||
214210
allCodes.count(NRpc::RequestQueueSizeLimitExceeded))
215211
{

0 commit comments

Comments
 (0)