HenryCaiHaiying commented on code in PR #17025:
URL: https://github.com/apache/iceberg/pull/17025#discussion_r3562760367


##########
kafka-connect/kafka-connect/src/test/java/org/apache/iceberg/connect/channel/TestWorker.java:
##########
@@ -113,4 +113,24 @@ public void testSave() {
       assertThat(dataComplete.assignments().get(0).offset()).isEqualTo(1L);
     }
   }
+
+  @Test
+  public void testWorkerRegistersJmxMetrics() throws Exception {
+    when(config.connectorName()).thenReturn("jmx-test-connector");
+    when(config.taskId()).thenReturn("3");
+
+    SinkTaskContext taskContext = mock(SinkTaskContext.class);
+    Worker worker = new Worker(config, clientFactory, mock(SinkWriter.class), 
taskContext);
+    try {
+      javax.management.MBeanServer server =

Review Comment:
   Will do.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to