fanyang commented on code in PR #20564:
URL: https://github.com/apache/kafka/pull/20564#discussion_r2377466124


##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerTest.java:
##########
@@ -898,6 +899,36 @@ public void 
testConnectorStatusMetricsGroup_taskStatusCounter(boolean enableTopi
         verifyKafkaClusterId();
     }
 
+    @ParameterizedTest
+    @ValueSource(booleans = {true, false})
+    public void testConnectorStatusMetricsGroup_tasksFailedToStart(boolean 
enableTopicCreation) {
+        setup(enableTopicCreation);
+        ConcurrentMap<ConnectorTaskId, WorkerTask<?, ?>> tasks = new 
ConcurrentHashMap<>();

Review Comment:
   Thanks. It's hard to create an immutable ConcurrentHashMap. I directly pass 
an empty ConcurrentHashMap to metrics group.



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