Skip to content

Commit

Permalink
codec(ticdc): add more logs to the avro encoding to help detect poten…
Browse files Browse the repository at this point in the history
…tial key encoding failed issure (#10901) (#11000)

close #10774
  • Loading branch information
ti-chi-bot authored May 10, 2024
1 parent 06ba7ae commit a4962cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sink/codec/avro/avro.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ func (a *BatchEncoder) AppendRowChangedEvent(

key, err := a.encodeKey(ctx, topic, e)
if err != nil {
log.Error("avro encoding key failed", zap.Error(err))
log.Error("avro encoding key failed", zap.Error(err), zap.Any("event", e))
return errors.Trace(err)
}

value, err := a.encodeValue(ctx, topic, e)
if err != nil {
log.Error("avro encoding value failed", zap.Error(err))
log.Error("avro encoding value failed", zap.Error(err), zap.Any("event", e))
return errors.Trace(err)
}

Expand Down

0 comments on commit a4962cd

Please sign in to comment.