[cdc-base] Fix NPE during snpashot scan phase ()

This closes .
pull/1340/head
ehui committed by GitHub
parent 52368e5b87
commit 0a097a9e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -111,6 +111,7 @@ public class JdbcSourceScanFetcher implements Fetcher<SourceRecord, SourceSplitB
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());

@ -77,6 +77,7 @@ public class JdbcSourceStreamFetcher implements Fetcher<SourceRecord, SourceSpli
public void submitTask(FetchTask<SourceSplitBase> fetchTask) {
this.streamFetchTask = fetchTask;
this.currentStreamSplit = fetchTask.getSplit().asStreamSplit();
configureFilter();
taskContext.configure(currentStreamSplit);
this.queue = taskContext.getQueue();
executor.submit(

Loading…
Cancel
Save