diff options
| author | dagorokhov <[email protected]> | 2026-06-15 13:22:53 +0300 |
|---|---|---|
| committer | dagorokhov <[email protected]> | 2026-06-15 13:54:52 +0300 |
| commit | 246d9269952ba8a27a1487cf4775ae6ec4740ee6 (patch) | |
| tree | fb4f12050c9932fa953ea5b87e48ff038af869a3 /yt/cpp/mapreduce/client/client.cpp | |
| parent | 8d7c71348981d6f1cdd5b49c3f1d04ccd668ef2a (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/client/client.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/client/client.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/client/client.cpp b/yt/cpp/mapreduce/client/client.cpp index aeed59a7d65..4d03ee0b1f8 100644 --- a/yt/cpp/mapreduce/client/client.cpp +++ b/yt/cpp/mapreduce/client/client.cpp @@ -369,6 +369,16 @@ TMultiTablePartitions TClientBase::GetTablePartitions( }); } +void TClient::CheckClusterLiveness(const TCheckClusterLivenessOptions& options) +{ + CheckShutdown(); + RequestWithRetry<void>( + ClientRetryPolicy_->CreatePolicyForCheckClusterLiveness(), + [this, &options] (TMutationId /*mutationId*/) { + RawClient_->CheckClusterLiveness(options); + }); +} + TMaybe<TYPath> TClientBase::GetFileFromCache( const TString& md5Signature, const TYPath& cachePath, |
