diff options
author | osidorkin <osidorkin@yandex-team.com> | 2024-04-14 23:46:06 +0300 |
---|---|---|
committer | osidorkin <osidorkin@yandex-team.com> | 2024-04-14 23:55:30 +0300 |
commit | a7654daa3d423e4329a620082ff6fe8c02cec726 (patch) | |
tree | 82dae5d1630e2d8139cbd8c7a1c551e45007ac51 /yt | |
parent | bffcd51478a9aeba25357eaa4169e63f29b33dc8 (diff) | |
download | ydb-a7654daa3d423e4329a620082ff6fe8c02cec726.tar.gz |
YT-20971: Move clock error codes to better namespace
7de5c2c09cc0ddb55f5dad646f7b0936f71989e3
Diffstat (limited to 'yt')
-rw-r--r-- | yt/yt/client/transaction_client/public.h | 2 | ||||
-rw-r--r-- | yt/yt/client/transaction_client/remote_timestamp_provider.cpp | 2 | ||||
-rw-r--r-- | yt/yt/core/rpc/public.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/yt/yt/client/transaction_client/public.h b/yt/yt/client/transaction_client/public.h index 6920bbd19c..fd3f41b370 100644 --- a/yt/yt/client/transaction_client/public.h +++ b/yt/yt/client/transaction_client/public.h @@ -46,6 +46,8 @@ YT_DEFINE_ERROR_ENUM( ((ForeignPrerequisiteTransaction) (11011)) ((IncompletePrepareSignature) (11012)) ((TransactionSuccessorHasLeases) (11013)) + ((UnknownClockClusterTag) (11014)) + ((ClockClusterTagMismatch) (11015)) ); //////////////////////////////////////////////////////////////////////////////// diff --git a/yt/yt/client/transaction_client/remote_timestamp_provider.cpp b/yt/yt/client/transaction_client/remote_timestamp_provider.cpp index 576029efe5..39ac63f605 100644 --- a/yt/yt/client/transaction_client/remote_timestamp_provider.cpp +++ b/yt/yt/client/transaction_client/remote_timestamp_provider.cpp @@ -97,7 +97,7 @@ private: if (clockClusterTag != InvalidCellTag && responseClockClusterTag != InvalidCellTag && clockClusterTag != responseClockClusterTag) { - THROW_ERROR_EXCEPTION(NRpc::EErrorCode::ClockClusterTagMismatch, "Clock cluster tag mismatch") + THROW_ERROR_EXCEPTION(EErrorCode::ClockClusterTagMismatch, "Clock cluster tag mismatch") << TErrorAttribute("request_clock_cluster_tag", clockClusterTag) << TErrorAttribute("response_clock_cluster_tag", responseClockClusterTag); } diff --git a/yt/yt/core/rpc/public.h b/yt/yt/core/rpc/public.h index db8dff99fb..759f741bd8 100644 --- a/yt/yt/core/rpc/public.h +++ b/yt/yt/core/rpc/public.h @@ -185,8 +185,6 @@ YT_DEFINE_ERROR_ENUM( ((SslError) (static_cast<int>(NBus::EErrorCode::SslError))) ((MemoryOverflow) (120)) ((GlobalDiscoveryError) (121)) // Single peer discovery interrupts discovery session. - ((UnknownClockClusterTag) (122)) - ((ClockClusterTagMismatch) (123)) ); DEFINE_ENUM(EMessageFormat, |