Skip to content

Commit

Permalink
sink, processor(ticdc): do not close table sink when closing sinkMana…
Browse files Browse the repository at this point in the history
…ger (#9381)

ref #9226, ref #9370
  • Loading branch information
CharlesCheung96 authored Jul 12, 2023
1 parent 5eb63ca commit 1225170
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cdc/processor/sinkmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1022,14 +1022,6 @@ func (m *SinkManager) Close() {

start := time.Now()
m.waitSubroutines()
m.tableSinks.Range(func(_ tablepb.Span, value interface{}) bool {
sink := value.(*tableSinkWrapper)
sink.close()
if m.eventCache != nil {
m.eventCache.removeTable(sink.span)
}
return true
})
m.clearSinkFactory()

log.Info("Closed sink manager",
Expand Down

0 comments on commit 1225170

Please sign in to comment.