m1a2st commented on code in PR #19634:
URL: https://github.com/apache/kafka/pull/19634#discussion_r2073436146


##########
clients/src/test/java/org/apache/kafka/test/TestUtils.java:
##########
@@ -570,17 +570,6 @@ public static ByteBuffer toBuffer(UnalignedRecords 
records) {
         return toBuffer(records.toSend());
     }
 
-    public static Set<TopicPartition> generateRandomTopicPartitions(int 
numTopic, int numPartitionPerTopic) {
-        Set<TopicPartition> tps = new HashSet<>();
-        for (int i = 0; i < numTopic; i++) {
-            String topic = randomString(32);
-            for (int j = 0; j < numPartitionPerTopic; j++) {
-                tps.add(new TopicPartition(topic, j));
-            }
-        }
-        return tps;
-    }
-
     /**
      * Assert that a future raises an expected exception cause type.
      * This method will wait for the future to complete or timeout(15000 
milliseconds).

Review Comment:
   Could you also fix L508 assertion expected and actual position



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to