divijvaidya commented on code in PR #13284:
URL: https://github.com/apache/kafka/pull/13284#discussion_r1248164007
##########
connect/mirror/src/test/java/org/apache/kafka/connect/mirror/integration/DedicatedMirrorIntegrationTest.java:
##########
@@ -288,4 +327,28 @@ private void awaitTopicContent(EmbeddedKafkaCluster
cluster, String clusterName,
}
}
+ /**
+ * Validates that the underlying connector are running for the given
MirrorMaker.
+ */
+ private boolean isConnectorRunningForMirrorMaker(final Class<?>
connectorClazz, final MirrorMaker mm, final SourceAndTarget sourceAndTarget) {
+ final String connName = connectorClazz.getSimpleName();
+ final ConnectorStateInfo connectorStatus =
mm.connectorStatus(sourceAndTarget, connName);
+ return connectorStatus != null
+ // verify that connector state is set to running
+ &&
connectorStatus.connector().state().equals(AbstractStatus.State.RUNNING.toString());
Review Comment:
Done in latest revision.
--
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]