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


##########
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 remove it?
   
   
   @ashulin please help to review



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to