pgaref commented on code in PR #22608:
URL: https://github.com/apache/flink/pull/22608#discussion_r1199660170


##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchSchedulerTest.java:
##########
@@ -91,6 +95,31 @@ void setUp() {
         taskRestartExecutor = new ManuallyTriggeredScheduledExecutor();
     }
 
+    @Test
+    void testExceptionHistoryWithGlobalFailureLabels() throws Exception {
+        final JobGraph jobGraph = createJobGraph();
+        final TestingFailureEnricher failureEnricher = new 
TestingFailureEnricher();
+        final SchedulerBase scheduler =
+                createFailingExecutionGraphScheduler(
+                        jobGraph,
+                        Collections.singleton(failureEnricher),
+                        createCustomParallelismDecider(10),
+                        
BatchExecutionOptions.ADAPTIVE_AUTO_PARALLELISM_MAX_PARALLELISM
+                                .defaultValue());
+        final DefaultExecutionGraph graph = (DefaultExecutionGraph) 
scheduler.getExecutionGraph();
+        // Triggered failure on initializeJobVertex that should be labeled
+        try {
+            scheduler.startScheduling();
+        } catch (IllegalStateException e) {
+            // expected due to failure
+        }

Review Comment:
   Thanks for the suggestion! Added :) 



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