huwh commented on code in PR #21970: URL: https://github.com/apache/flink/pull/21970#discussion_r1113861894
########## flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/DefaultScheduler.java: ########## @@ -377,6 +377,10 @@ private void restartTasks( final Set<ExecutionVertexID> verticesToRestart = executionVertexVersioner.getUnmodifiedExecutionVertices(executionVertexVersions); + if (verticesToRestart.isEmpty()) { + return; Review Comment: The global failover will change execution state to 'CANCELING' in #restartTasksWithDelay. So that the pending execution state transition(to 'FAILED') will not be executed and will not trigger a region failover. Therefore, only regional failover or global failover can be superseded by global failover. -- 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