Skip to content

Commit

Permalink
ticdc/reactor: log capture info when remote capture is offline (#3515)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei authored Nov 18, 2021
1 parent fe92b89 commit 6ee8d2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/orchestrator/reactor_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ func (s *GlobalReactorState) Update(key util.EtcdKey, value []byte, _ bool) erro
return nil
case etcd.CDCKeyTypeCapture:
if value == nil {
log.Info("remote capture offline", zap.String("capture-id", k.CaptureID))
log.Info("remote capture offline",
zap.String("capture-id", k.CaptureID),
zap.Any("info", s.Captures[k.CaptureID]))
delete(s.Captures, k.CaptureID)
return nil
}
Expand Down

0 comments on commit 6ee8d2c

Please sign in to comment.