diff options
| author | ermolovd <[email protected]> | 2026-03-12 22:24:10 +0300 |
|---|---|---|
| committer | ermolovd <[email protected]> | 2026-03-12 22:49:08 +0300 |
| commit | 4e222e2aff9b602868a2f56feb9400293afd634c (patch) | |
| tree | 81d03bbcfe3aca9c37b6bb763622d9dca9b51bdf /yt/cpp/mapreduce/client/client.cpp | |
| parent | b362f3a3b9d713a6370cad73a09b27d27e6ac73b (diff) | |
fetch dynamic config through cache, don't scare the users with expected errors
commit_hash:03d0aeb6901ca96aae2f8570482204f0ca707c88
Diffstat (limited to 'yt/cpp/mapreduce/client/client.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/client/client.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/client/client.cpp b/yt/cpp/mapreduce/client/client.cpp index fff13000fc0..f5ae5506427 100644 --- a/yt/cpp/mapreduce/client/client.cpp +++ b/yt/cpp/mapreduce/client/client.cpp @@ -90,6 +90,11 @@ bool IsNoSuchTransactionError(const TErrorResponse& e) return e.GetError().ContainsErrorCode(NClusterErrorCodes::NTransactionClient::NoSuchTransaction); } +bool IsResolveError(const TErrorResponse& e) +{ + return e.GetError().ContainsErrorCode(NClusterErrorCodes::NYTree::ResolveError); +} + //////////////////////////////////////////////////////////////////////////////// } // namespace @@ -1733,7 +1738,8 @@ const TNode::TMapType& TClient::GetDynamicConfiguration(const TString& configPro configProfile); try { - clusterConfigNode = Get(clusterConfigPath, TGetOptions()); + TExpectedErrorGuard guard(IsResolveError); + clusterConfigNode = Get(clusterConfigPath, TGetOptions().ReadFrom(EMasterReadKind::Cache)); } catch (const TErrorResponse& error) { if (!error.IsResolveError()) { throw; |
