Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/kafka-consumer-batch' into fix-o…
Browse files Browse the repository at this point in the history
…rdering

Signed-off-by: Ping Yu <[email protected]>
  • Loading branch information
pingyu committed Mar 4, 2024
2 parents 2686dbe + dd9620a commit d7b9024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cdc/cdc/sink/tikv.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ func (k *tikvSink) runWorker(ctx context.Context, workerIdx uint32) error {
}
continue
}
_ = batcher.Append(e.rawKVEntry) // TODO: handle error
if err := batcher.Append(e.rawKVEntry); err != nil {
return errors.Trace(err)
}

if batcher.ByteSize() >= defaultTiKVBatchBytesLimit {
if err := flushToTiKV(); err != nil {
Expand Down

0 comments on commit d7b9024

Please sign in to comment.