summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/config.cpp
diff options
context:
space:
mode:
authordagorokhov <[email protected]>2026-06-15 13:22:53 +0300
committerdagorokhov <[email protected]>2026-06-15 13:54:52 +0300
commit246d9269952ba8a27a1487cf4775ae6ec4740ee6 (patch)
treefb4f12050c9932fa953ea5b87e48ff038af869a3 /yt/cpp/mapreduce/interface/config.cpp
parent8d7c71348981d6f1cdd5b49c3f1d04ccd668ef2a (diff)
YT-28380: Add CheckClusterLiveness to C++ SDK
* Changelog entry Type: feature Component: cpp-sdk Add CheckClusterLiveness handle commit_hash:9b3f23b70fb639693a67edbe9ed2b80683fea61b
Diffstat (limited to 'yt/cpp/mapreduce/interface/config.cpp')
-rw-r--r--yt/cpp/mapreduce/interface/config.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/config.cpp b/yt/cpp/mapreduce/interface/config.cpp
index e222e35c723..aff639591ce 100644
--- a/yt/cpp/mapreduce/interface/config.cpp
+++ b/yt/cpp/mapreduce/interface/config.cpp
@@ -255,6 +255,7 @@ void TConfig::Reset()
RetryCount = Max(GetInt("YT_RETRY_COUNT", 10), 1);
ReadRetryCount = Max(GetInt("YT_READ_RETRY_COUNT", 30), 1);
StartOperationRetryCount = Max(GetInt("YT_START_OPERATION_RETRY_COUNT", 30), 1);
+ CheckLivenessRetryCount = Max(GetInt("YT_CHECK_LIVENESS_RETRY_COUNT", 3), 1);
RemoteTempFilesDirectory = GetEnv("YT_FILE_STORAGE", DefaultRemoteTempFilesDirectory);
RemoteTempTablesDirectory = GetEnv("YT_TEMP_TABLES_STORAGE", DefaultRemoteTempTablesDirectory);
@@ -440,6 +441,7 @@ void Serialize(const TConfig& config, NYson::IYsonConsumer* consumer)
.Item("retry_count").Value(config.RetryCount)
.Item("read_retry_count").Value(config.ReadRetryCount)
.Item("start_operation_retry_count").Value(config.StartOperationRetryCount)
+ .Item("check_liveness_retry_count").Value(config.CheckLivenessRetryCount)
.Item("operation_tracker_poll_period").Value(config.OperationTrackerPollPeriod.ToString())
.Item("remote_temp_files_directory").Value(config.RemoteTempFilesDirectory)
.Item("remote_temp_tables_directory").Value(config.RemoteTempTablesDirectory)
@@ -521,6 +523,7 @@ void Deserialize(TConfig& config, const TNode& node)
DESERIALIZE_ITEM("retry_count", config.RetryCount);
DESERIALIZE_ITEM("read_retry_count", config.ReadRetryCount);
DESERIALIZE_ITEM("start_operation_retry_count", config.StartOperationRetryCount);
+ DESERIALIZE_ITEM("check_liveness_retry_count", config.CheckLivenessRetryCount);
DESERIALIZE_ITEM("operation_tracker_poll_period", config.OperationTrackerPollPeriod);
DESERIALIZE_ITEM("remote_temp_files_directory", config.RemoteTempFilesDirectory);
DESERIALIZE_ITEM("remote_temp_tables_directory", config.RemoteTempTablesDirectory);