aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp
diff options
context:
space:
mode:
authorkvk1920 <kvk1920@yandex-team.com>2024-04-07 16:29:24 +0300
committerkvk1920 <kvk1920@yandex-team.com>2024-04-07 16:39:40 +0300
commit72eeab5172756159750eef875745e2a6f5b0004f (patch)
tree1896404822df1d2e2dd04a533eef4268a00aa2bd /yt/cpp
parent42da44fa8e0963eb9c00831a730bb7e21ebf34ec (diff)
downloadydb-72eeab5172756159750eef875745e2a6f5b0004f.tar.gz
YT-18503: Mirror Cypress Tx to Sequoia Ground
e6d585180289325f8082f42f85a60478194ba266
Diffstat (limited to 'yt/cpp')
-rw-r--r--yt/cpp/mapreduce/common/retry_lib.cpp3
-rw-r--r--yt/cpp/mapreduce/interface/error_codes.h13
2 files changed, 15 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/common/retry_lib.cpp b/yt/cpp/mapreduce/common/retry_lib.cpp
index cf2c021eb4..772a2ab0cd 100644
--- a/yt/cpp/mapreduce/common/retry_lib.cpp
+++ b/yt/cpp/mapreduce/common/retry_lib.cpp
@@ -220,10 +220,11 @@ static TMaybe<TDuration> TryGetBackoffDuration(const TErrorResponse& errorRespon
// chunk client errors
return config->ChunkErrorsRetryInterval;
}
- for (auto code : TVector<int>{
+ for (auto code : {
NRpc::TransportError,
NRpc::Unavailable,
NApi::RetriableArchiveError,
+ NSequoiaClient::SequoiaRetriableError,
Canceled,
}) {
if (allCodes.contains(code)) {
diff --git a/yt/cpp/mapreduce/interface/error_codes.h b/yt/cpp/mapreduce/interface/error_codes.h
index e784e3ee88..35e5e7c913 100644
--- a/yt/cpp/mapreduce/interface/error_codes.h
+++ b/yt/cpp/mapreduce/interface/error_codes.h
@@ -465,5 +465,18 @@ namespace NJobProberClient {
} // namespace NJobProberClient
+
+
+// from ./ytlib/sequoia_client/public.h
+namespace NSequoiaClient {
+
+////////////////////////////////////////////////////////////////////////////////
+
+ constexpr int SequoiaRetriableError = 6002;
+
+////////////////////////////////////////////////////////////////////////////////
+
+} // namespace NSequoiaClient
+
} // namespace NClusterErrorCodes
} // namespace NYT