From 29f1fa1d8b684afa9d5cb089db8dbe796b2c9f5b Mon Sep 17 00:00:00 2001 From: Innokentii Mokin Date: Tue, 16 Jul 2024 15:58:06 +0700 Subject: [PATCH] Add error messages to replication (#6708) --- ydb/core/tx/datashard/datashard_repl_apply.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ydb/core/tx/datashard/datashard_repl_apply.cpp b/ydb/core/tx/datashard/datashard_repl_apply.cpp index 921ea6b94f5b..1392db22df31 100644 --- a/ydb/core/tx/datashard/datashard_repl_apply.cpp +++ b/ydb/core/tx/datashard/datashard_repl_apply.cpp @@ -27,14 +27,16 @@ class TDataShard::TTxApplyReplicationChanges : public TTransactionBaseState != TShardState::Ready) { Result = MakeHolder( NKikimrTxDataShard::TEvApplyReplicationChangesResult::STATUS_REJECTED, - NKikimrTxDataShard::TEvApplyReplicationChangesResult::REASON_WRONG_STATE); + NKikimrTxDataShard::TEvApplyReplicationChangesResult::REASON_WRONG_STATE, + TStringBuilder() << "DataShard is not ready"); return true; } if (!Self->IsReplicated()) { Result = MakeHolder( NKikimrTxDataShard::TEvApplyReplicationChangesResult::STATUS_REJECTED, - NKikimrTxDataShard::TEvApplyReplicationChangesResult::REASON_BAD_REQUEST); + NKikimrTxDataShard::TEvApplyReplicationChangesResult::REASON_BAD_REQUEST, + TStringBuilder() << "Table is not replicated"); return true; }