asdaraujo commented on a change in pull request #8730: URL: https://github.com/apache/kafka/pull/8730#discussion_r480267122
########## File path: connect/mirror/src/test/java/org/apache/kafka/connect/mirror/MirrorConnectorsIntegrationTest.java ########## @@ -128,10 +136,23 @@ public void setup() throws InterruptedException { backup.kafka().createTopic("primary.test-topic-1", 1); backup.kafka().createTopic("heartbeats", 1); - for (int i = 0; i < NUM_RECORDS_PRODUCED; i++) { - primary.kafka().produce("test-topic-1", i % NUM_PARTITIONS, "key", "message-1-" + i); - backup.kafka().produce("test-topic-1", i % NUM_PARTITIONS, "key", "message-2-" + i); - } + // produce to all partitions but the last one + produceMessages(primary, "test-topic-1", NUM_PARTITIONS - 1, "message-1-"); + produceMessages(backup, "test-topic-1", NUM_PARTITIONS - 1, "message-2-"); + + consumerProps = new HashMap<String, Object>() {{ Review comment: I changed the way this is done, setting it at the test-level, with test-specific CGs. ---------------------------------------------------------------- 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