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) (#11438)

close #11278
  • Loading branch information
ti-chi-bot authored Jul 31, 2024
1 parent 126e30b commit 94f1168
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 94f1168

Please sign in to comment.