Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: qupeng <[email protected]>
  • Loading branch information
hicqu committed Oct 25, 2023
1 parent 97a861c commit 38e572c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cdc/kv/shared_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,19 @@ func (s *requestedStream) sendRegionChangeEvents(
} else {
subscriptionID = tableSubID
}

switch x := event.Event.(type) {
case *cdcpb.Event_Admin_:
case *cdcpb.Event_Error:
log.Info("event feed receives a region error",
zap.String("namespace", c.changefeed.Namespace),
zap.String("changefeed", c.changefeed.ID),
zap.Uint64("streamID", s.streamID),
zap.Any("subscriptionID", subscriptionID),
zap.Uint64("regionID", event.RegionId),
zap.Any("error", x.Error))
}

if state := s.getState(subscriptionID, regionID); state != nil {
sfEvent := newEventItem(event, state, s)
slot := hashRegionID(regionID, len(c.workers))
Expand Down

0 comments on commit 38e572c

Please sign in to comment.