Izeren commented on code in PR #27719:
URL: https://github.com/apache/flink/pull/27719#discussion_r2883691857


##########
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionGraphRestartTest.java:
##########
@@ -105,20 +111,24 @@ void testCancelAllPendingRequestWhileCanceling() throws 
Exception {
             JobGraph graph = JobGraphTestUtils.streamingJobGraph(sender);
             SchedulerBase scheduler =
                     new DefaultSchedulerBuilder(
-                                    graph, mainThreadExecutor, 
EXECUTOR_RESOURCE.getExecutor())
+                                    graph, mainThreadExecutor, 
EXECUTOR_EXTENSION.getExecutor())
                             .setExecutionSlotAllocatorFactory(
                                     
createExecutionSlotAllocatorFactory(slotPool))
                             .build();
-            ExecutionGraph executionGraph = scheduler.getExecutionGraph();
 
-            startScheduling(scheduler);
-            offerSlots(slotPool, NUM_TASKS);
+            mainThreadExecutor.execute(

Review Comment:
   @RocMarshal, I ran it locally, and it looks like these lambda invocations 
may not even happen before the test exits, so they are likely passing in a 
misleading way (not really testing underlying logic)



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