Skip to content

Commit d444402

Browse files
[*] restart instead of logging
1 parent 06d06f1 commit d444402

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ydb/core/persqueue/pqtablet/pq_impl.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -811,10 +811,7 @@ void TPersQueue::ReadConfig(const NKikimrClient::TKeyValueResponse::TReadResult&
811811
NKikimrPQ::TTransaction tx;
812812
PQ_ENSURE(tx.ParseFromString(pair.GetValue()));
813813

814-
if (tx.GetKind() == NKikimrPQ::TTransaction::KIND_UNKNOWN) {
815-
PQ_LOG_TX_W("Invalid transaction state. Key " << pair.GetKey());
816-
continue;
817-
}
814+
PQ_ENSURE(tx.GetKind() != NKikimrPQ::TTransaction::KIND_UNKNOWN)("Key", pair.GetKey());
818815

819816
PQ_LOG_TX_I("Restore Tx. " <<
820817
"TxId: " << tx.GetTxId() <<

0 commit comments

Comments
 (0)