pnowojski commented on a change in pull request #10435: [FLINK-13955][runtime] 
migrate ContinuousFileReaderOperator to the mailbox execution model
URL: https://github.com/apache/flink/pull/10435#discussion_r372940703
 
 

 ##########
 File path: 
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/ContinuousFileProcessingRescalingTest.java
 ##########
 @@ -112,22 +118,35 @@ private HarnessWithFormat buildAndStart(
                        @Nullable OperatorSubtaskState initState,
                        FileInputSplit... splits) throws Exception {
 
+               
CompletableFuture<OneInputStreamOperatorTestHarness<TimestampedFileInputSplit, 
String>> future = new CompletableFuture<>();
                BlockingFileInputFormat format = new 
BlockingFileInputFormat(new Path("test"), sizeOfSplit, 
elementsBeforeCheckpoint);
 
-               OneInputStreamOperatorTestHarness<TimestampedFileInputSplit, 
String> harness = getTestHarness(format, noOfTasks, taskIdx);
-               harness.setup();
-               if (initState != null) {
-                       harness.initializeState(initState);
-               }
-               harness.open();
-               if (splits != null) {
-                       for (int i = 0; i < splits.length; i++) {
-                               harness.processElement(new 
StreamRecord<>(getTimestampedSplit(i, splits[i])));
+               new Thread(() -> {
 
 Review comment:
   The same remarks as in `ContinuousFileProcessingTest` 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to