HuangZhenQiu commented on code in PR #25770:
URL: https://github.com/apache/flink/pull/25770#discussion_r1883370833


##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptive/AdaptiveSchedulerTest.java:
##########
@@ -664,7 +740,7 @@ void testNumRestartsMetric() throws Exception {
         // wait for the second task submissions
         taskManagerGateway.waitForSubmissions(PARALLELISM);
 
-        assertThat(numRestartsMetric.getValue()).isEqualTo(1L);
+        assertThat(numRestartsMetric.getValue()).isEqualTo(0L);

Review Comment:
   Yes, I am struggling to create a test case to trigger restart in scheduler. 
FailureResultUtil is a possible entry point, but it is impossible to create a 
StateWithExecutionGraph foo call the function of restartOrFail. Any hint will 
be welcomed.



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