Skip to content

Commit

Permalink
check if the message is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Oct 25, 2022
1 parent a8e341f commit f4754e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cdc/sink/mq/mq_flush_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ func (w *flushWorker) nonBatchEncodeRun(ctx context.Context) error {
log.Warn("MQ sink flush worker channel closed")
return nil
}

if event.row == nil {
continue
}

err := w.encoder.AppendRowChangedEvent(ctx, event.key.Topic, event.row, nil)
if err != nil {
return err
Expand Down

0 comments on commit f4754e1

Please sign in to comment.