asdaraujo commented on a change in pull request #8730: URL: https://github.com/apache/kafka/pull/8730#discussion_r480265451
########## File path: connect/mirror/src/test/java/org/apache/kafka/connect/mirror/MirrorConnectorsIntegrationTest.java ########## @@ -367,14 +406,37 @@ public void testOneWayReplicationWithAutorOffsetSync1() throws InterruptedExcept time.sleep(5000); // create a consumer at backup cluster with same consumer group Id to consume old and new topic - consumer = backup.kafka().createConsumerAndSubscribeTo(Collections.singletonMap( - "group.id", "consumer-group-1"), "primary.test-topic-1", "primary.test-topic-2"); + consumer = backup.kafka().createConsumerAndSubscribeTo(consumerProps, "primary.test-topic-1", "primary.test-topic-2"); records = consumer.poll(Duration.ofMillis(500)); // similar reasoning as above, no more records to consume by the same consumer group at backup cluster assertEquals("consumer record size is not zero", 0, records.count()); consumer.close(); + } + + private void produceMessages(EmbeddedConnectCluster cluster, String topicName, int partitions, String msgPrefix) { + for (int i = 0; i < NUM_RECORDS_PRODUCED; i++) { + // produce to all partitions but the last one Review comment: Updated. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org