Savonitar commented on code in PR #28857:
URL: https://github.com/apache/flink/pull/28857#discussion_r3713281516


##########
flink-runtime/src/test/java/org/apache/flink/runtime/source/coordinator/SourceCoordinatorProviderTest.java:
##########
@@ -123,6 +124,42 @@ void testCallAsyncExceptionFailsJob() throws Exception {
                 "The job did not fail before timeout.");
     }
 
+    @Test
+    void testCoordinatorThreadNameContainsJobIdentity() throws Exception {
+        final MockOperatorCoordinatorContext context =
+                new MockOperatorCoordinatorContext(OPERATOR_ID, NUM_SPLITS);
+        final RecreateOnResetOperatorCoordinator coordinator =
+                (RecreateOnResetOperatorCoordinator) provider.create(context);
+        final JobInfo jobInfo = context.getJobInfo();
+        try {
+            // Starting the coordinator creates the (lazily initialized) 
coordinator thread.
+            coordinator.start();
+            CommonTestUtils.waitUtil(
+                    () -> findCoordinatorThread(jobInfo) != null,
+                    Duration.ofSeconds(10L),

Review Comment:
   https://github.com/apache/flink/pull/28857#discussion_r3713261848



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