You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/09/28 08:21:38 UTC

[GitHub] [incubator-seatunnel] ashulin commented on a diff in pull request #2907: [hotfix][e2e][jdbc] fix some error when docker version is old

ashulin commented on code in PR #2907:
URL: https://github.com/apache/incubator-seatunnel/pull/2907#discussion_r982094919


##########
seatunnel-translation/seatunnel-translation-base/src/main/java/org/apache/seatunnel/translation/source/ParallelSource.java:
##########
@@ -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();

Review Comment:
   why change it? 
   I have the same question.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org