Skip to content

Commit

Permalink
syncer(dm): Improve logging of ignored TableMap/FormatDesc (#10205)
Browse files Browse the repository at this point in the history
close #10204
  • Loading branch information
dveeden authored Dec 4, 2023
1 parent cd0cb8f commit 1fa2752
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dm/syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2435,13 +2435,17 @@ func (s *Syncer) Run(ctx context.Context) (err error) {
case *replication.XIDEvent:
eventType = "XID"
needContinue, err2 = funcCommit()
case *replication.TableMapEvent:
case *replication.FormatDescriptionEvent:
default:
s.tctx.L().Warn("unhandled event from transaction payload", zap.String("type", fmt.Sprintf("%T", tpevt)))
}
}
if needContinue {
continue
}
case *replication.TableMapEvent:
case *replication.FormatDescriptionEvent:
default:
s.tctx.L().Warn("unhandled event", zap.String("type", fmt.Sprintf("%T", ev)))
}
Expand Down

0 comments on commit 1fa2752

Please sign in to comment.