Skip to content

Commit

Permalink
[INLONG-8060][Sort] Let mysql source reader throws runtimeException w…
Browse files Browse the repository at this point in the history
…hen connect times out or OOM
  • Loading branch information
EMsnap committed May 19, 2023
1 parent 5d38102 commit 7392c6a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public Iterator<SourceRecord> pollSplitRecords() throws InterruptedException {
boolean reachBinlogEnd = false;
final List<SourceRecord> sourceRecords = new ArrayList<>();
while (!reachBinlogEnd) {
checkReadException();
List<DataChangeEvent> batch = queue.poll();
for (DataChangeEvent event : batch) {
sourceRecords.add(event.getRecord());
Expand Down

0 comments on commit 7392c6a

Please sign in to comment.