Skip to content

Commit

Permalink
sorter(cdc): fix a bug that Pebble sorter can be stucked when closing…
Browse files Browse the repository at this point in the history
… a processor (#11279)

close #11278
  • Loading branch information
hicqu authored Jun 11, 2024
1 parent cded157 commit e3b0bc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cdc/processor/sourcemanager/sorter/pebble/event_sorter.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,11 @@ func (s *EventSorter) handleEvents(
if !ok {
return
}
batchCh <- batchEvent
select {
case <-s.closed:
return
case batchCh <- batchEvent:
}
}
}

Expand Down

0 comments on commit e3b0bc7

Please sign in to comment.