Skip to content

Commit 5f5cf4c

Browse files
authored
Check shard state at TTxCdcStreamEmitHeartbeats (#7051)
1 parent babf6c1 commit 5f5cf4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ydb/core/tx/datashard/cdc_stream_heartbeat.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class TDataShard::TTxCdcStreamEmitHeartbeats: public NTabletFlatExecutor::TTrans
3333
TTxType GetTxType() const override { return TXTYPE_CDC_STREAM_EMIT_HEARTBEATS; }
3434

3535
bool Execute(TTransactionContext& txc, const TActorContext&) override {
36+
if (Self->State != TShardState::Ready) {
37+
return true;
38+
}
39+
3640
LOG_I("Emit change records"
3741
<< ": edge# " << Edge
3842
<< ", at tablet# " << Self->TabletID());

0 commit comments

Comments
 (0)