summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsabdenovch <[email protected]>2026-04-15 10:21:16 +0300
committersabdenovch <[email protected]>2026-04-15 10:46:26 +0300
commitf460addf0787fcced7e2ee79e35787679c2011a7 (patch)
tree4042eaba71bb3e2a831465bc9fc3837c0c0a80ee
parentfd581fad46ca3697801fc8e68f37abb66b97a522 (diff)
YT-27570: Configurably log unexpected mutation handler exceptions
* Changelog entry Type: feature Component: misc-server Distinguished expected exceptions thrown within mutations. Expected exceptions are wrapped into an error with a special code. Unexpected exceptions are logged at dynamically configurable log level with overrides per mutation type. commit_hash:bd2bad4748b4d2f20d00cad50e1b417f78c4d2d2
-rw-r--r--yt/yt/client/hydra/public.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/yt/yt/client/hydra/public.h b/yt/yt/client/hydra/public.h
index 30f293b6108..cabbe417d21 100644
--- a/yt/yt/client/hydra/public.h
+++ b/yt/yt/client/hydra/public.h
@@ -23,19 +23,20 @@ DEFINE_ENUM(EPeerState,
);
YT_DEFINE_ERROR_ENUM(
- ((NoSuchSnapshot) (600))
- ((NoSuchChangelog) (601))
- ((InvalidEpoch) (602))
- ((InvalidVersion) (603))
- ((OutOfOrderMutations) (609))
- ((InvalidSnapshotVersion) (610))
- ((ReadOnlySnapshotBuilt) (611))
- ((ReadOnlySnapshotBuildFailed) (612))
- ((BrokenChangelog) (613))
- ((ChangelogIOError) (614))
- ((InvalidChangelogState) (615))
- ((ReadOnly) (616))
- ((RestartAfterRecovery) (617))
+ ((NoSuchSnapshot) (600))
+ ((NoSuchChangelog) (601))
+ ((InvalidEpoch) (602))
+ ((InvalidVersion) (603))
+ ((OutOfOrderMutations) (609))
+ ((InvalidSnapshotVersion) (610))
+ ((ReadOnlySnapshotBuilt) (611))
+ ((ReadOnlySnapshotBuildFailed) (612))
+ ((BrokenChangelog) (613))
+ ((ChangelogIOError) (614))
+ ((InvalidChangelogState) (615))
+ ((ReadOnly) (616))
+ ((RestartAfterRecovery) (617))
+ ((ExpectedMutationHandlerException) (618))
);
DEFINE_ENUM(EPeerKind,