Skip to content

Commit 8457aaa

Browse files
author
hiddenpath
committed
YT-24322: Retry cannot read from socket input stream error
commit_hash:bdfb86ce1915fd5c298250f4973acf6343a3e226
1 parent 108c1aa commit 8457aaa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

yt/cpp/mapreduce/common/retry_lib.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ static TMaybe<TDuration> TryGetBackoffDuration(const TErrorResponse& errorRespon
222222
}
223223
for (auto code : {
224224
NRpc::TransportError,
225+
NBus::TransportError,
225226
NRpc::Unavailable,
226227
NApi::RetriableArchiveError,
227228
NSequoiaClient::SequoiaRetriableError,

yt/cpp/mapreduce/http/http.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ std::exception_ptr WrapSystemError(
4949
}
5050

5151
auto message = NYT::Format("Request %qv to %qv failed", context.RequestId, context.HostName + context.Method);
52-
TYtError outer(1, message, {TYtError(NClusterErrorCodes::Generic, ex.what())}, {
52+
TYtError outer(NClusterErrorCodes::NBus::TransportError, message, {TYtError(NClusterErrorCodes::Generic, ex.what())}, {
5353
{"request_id", context.RequestId},
5454
{"host", context.HostName},
5555
{"method", context.Method},

0 commit comments

Comments
 (0)