Skip to content

Commit

Permalink
fix bug.when run jdbc connector task,registerReader will error.
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Sep 27, 2022
1 parent 4d4b5dd commit d0537da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ public ParallelSource(SeaTunnelSource<T, SplitT, StateT> source,

@Override
public void open() throws Exception {
parallelEnumeratorContext.register();
executorService = ThreadPoolExecutorFactory.createScheduledThreadPoolExecutor(1, String.format("parallel-split-enumerator-executor-%s", subtaskId));
splitEnumerator.open();
if (restoredSplitState.size() > 0) {
splitEnumerator.addSplitsBack(restoredSplitState, subtaskId);
}
reader.open();
parallelEnumeratorContext.register();
splitEnumerator.registerReader(subtaskId);
}

Expand Down

0 comments on commit d0537da

Please sign in to comment.