diff options
author | dgolear <dgolear@yandex-team.com> | 2024-11-29 17:33:57 +0300 |
---|---|---|
committer | dgolear <dgolear@yandex-team.com> | 2024-11-29 17:51:33 +0300 |
commit | fefd531d45e1854a567b58f4d6a661d3d365ece1 (patch) | |
tree | 00112d88c344b59dbb3e3a7b52936accb4af0e16 | |
parent | e7cd6827bb75b150e61c7438ad171ccaab86fd55 (diff) | |
download | ydb-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.cpp | 4 |
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); } } |