summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashishkin <[email protected]>2025-06-30 12:59:33 +0300
committerashishkin <[email protected]>2025-06-30 13:50:06 +0300
commita3de1fc96221b7276abf4cf89e13e2fa6a5724d6 (patch)
tree23a8ccc9624cb2eb49fb00ad2338e0bbd9dbdb27
parent6c08b6c0b77e6597f669f17aff0d20c9743593d1 (diff)
YT-10993: Error code for tablet is in intermediate state
commit_hash:c935c46cf549f36bc22ebac3217872f47c0cff51
-rw-r--r--yt/python/yt/common.py2
-rw-r--r--yt/yt/client/tablet_client/public.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/yt/python/yt/common.py b/yt/python/yt/common.py
index 71a7976df00..e03c6b6c6ec 100644
--- a/yt/python/yt/common.py
+++ b/yt/python/yt/common.py
@@ -318,7 +318,7 @@ class YtError(Exception):
def is_tablet_in_intermediate_state(self):
"""Tablet is in intermediate state."""
# TODO(ifsmirnov) migrate to error code, YT-10993
- return self._matches_regexp("Tablet .* is in state .*")
+ return self.contains_code(1744) or self._matches_regexp("Tablet .* is in state .*")
def is_no_such_tablet(self):
"""No such tablet."""
diff --git a/yt/yt/client/tablet_client/public.h b/yt/yt/client/tablet_client/public.h
index 17798afeb93..61a4edcf58f 100644
--- a/yt/yt/client/tablet_client/public.h
+++ b/yt/yt/client/tablet_client/public.h
@@ -95,6 +95,7 @@ YT_DEFINE_ERROR_ENUM(
((UniqueIndexConflict) (1741))
((TabletReplicationEraMismatch) (1742))
((OrderedDynamicStoreRotateEpochMismatch) (1743))
+ ((TabletIsInIntermediateState) (1744))
);
DEFINE_ENUM(EInMemoryMode,