HenryCaiHaiying commented on code in PR #17025:
URL: https://github.com/apache/iceberg/pull/17025#discussion_r3557105704
##########
kafka-connect/kafka-connect/src/test/java/org/apache/iceberg/connect/channel/TestCoordinator.java:
##########
@@ -371,4 +376,25 @@ public void testCoordinatorCommittedOffsetValidation() {
assertThat(table.snapshots()).hasSize(2);
assertThat(table.currentSnapshot().summary()).containsEntry(OFFSETS_SNAPSHOT_PROP,
"{\"0\":7}");
}
+
+ @Test
+ public void testCoordinatorRegistersJmxMetrics() throws Exception {
+ when(config.connectorName()).thenReturn("jmx-coord-connector");
+
+ SinkTaskContext taskContext = mock(SinkTaskContext.class);
+ Coordinator coordinator =
+ new Coordinator(catalog, config, ImmutableList.of(), clientFactory,
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]