aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgolear <dgolear@yandex-team.com>2024-11-29 17:33:57 +0300
committerdgolear <dgolear@yandex-team.com>2024-11-29 17:51:33 +0300
commitfefd531d45e1854a567b58f4d6a661d3d365ece1 (patch)
tree00112d88c344b59dbb3e3a7b52936accb4af0e16
parente7cd6827bb75b150e61c7438ad171ccaab86fd55 (diff)
downloadydb-fefd531d45e1854a567b58f4d6a661d3d365ece1.tar.gz
YT: Annotate ts out of range errors with correct error code
commit_hash:9a961c725ab0976f4a6eb81e301ada80a0da62c3
-rw-r--r--yt/yt/client/table_client/unversioned_row.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt/yt/client/table_client/unversioned_row.cpp b/yt/yt/client/table_client/unversioned_row.cpp
index 1dce4fb1b4..2c71c617f2 100644
--- a/yt/yt/client/table_client/unversioned_row.cpp
+++ b/yt/yt/client/table_client/unversioned_row.cpp
@@ -1274,7 +1274,9 @@ void ValidateReadTimestamp(TTimestamp timestamp)
timestamp != AsyncLastCommittedTimestamp &&
(timestamp < MinTimestamp || timestamp > MaxTimestamp))
{
- THROW_ERROR_EXCEPTION("Invalid read timestamp %x", timestamp);
+ THROW_ERROR_EXCEPTION(NTableClient::EErrorCode::TimestampOutOfRange,
+ "Invalid read timestamp %x",
+ timestamp);
}
}