TyrantLucifer commented on code in PR #5100:
URL: https://github.com/apache/seatunnel/pull/5100#discussion_r1413564284


##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/split/FileSourceSplitEnumerator.java:
##########
@@ -54,15 +57,18 @@ public FileSourceSplitEnumerator(
 
     @Override
     public void open() {
-        this.pendingSplit = new HashSet<>();
+        this.pendingSplit.addAll(discoverySplits());
     }
 
     @Override
     public void run() {
-        // do nothing
+        for (int i = 0; i < context.currentParallelism(); i++) {
+            LOGGER.info("Assigned splits to reader [{}]", i);
+            assignSplit(i);
+        }

Review Comment:
   Flink translation layer guarantee this method must be invoked after all 
reader registed.



-- 
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