lindong28 commented on code in PR #20454:
URL: https://github.com/apache/flink/pull/20454#discussion_r941448669


##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/SchedulerTestingUtils.java:
##########
@@ -197,13 +196,12 @@ public static void setAllExecutionsToRunning(final 
DefaultScheduler scheduler) {
     }
 
     public static void setAllExecutionsToCancelled(final DefaultScheduler 
scheduler) {
-        for (final ExecutionAttemptID attemptId : 
getAllCurrentExecutionAttempts(scheduler)) {
-            final boolean setToRunning =
-                    scheduler.updateTaskExecutionState(
-                            new TaskExecutionState(attemptId, 
ExecutionState.CANCELED));
-
-            assertTrue("could not switch task to RUNNING", setToRunning);

Review Comment:
   Why do we remove this check from the test?



-- 
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: issues-unsubscr...@flink.apache.org

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

Reply via email to