TaiJuWu commented on code in PR #20235:
URL: https://github.com/apache/kafka/pull/20235#discussion_r2227784143
##########
tools/src/test/java/org/apache/kafka/tools/consumer/group/ResetConsumerGroupOffsetTest.java:
##########
@@ -153,6 +158,33 @@ public void
testResetOffsetsNotExistingGroup(ClusterInstance cluster) throws Exc
}
}
+ @ClusterTest(brokers = 5)
+ public void testResetOffsetsWithOfflinePartition(ClusterInstance cluster)
throws Exception {
+ String topic = generateRandomTopic();
+ String group = "new.group";
+ String[] args = buildArgsForGroup(cluster, group, "--to-earliest",
"--execute", "--topic", topic + ":1");
+ cluster.createTopic(topic, 3, (short) 2);
+
+ try (ConsumerGroupCommand.ConsumerGroupService service =
getConsumerGroupService(args);
+ Admin admin = cluster.admin()) {
Review Comment:
change to `try (Admin admin = cluster.admin();
ConsumerGroupCommand.ConsumerGroupService service =
getConsumerGroupService(args))`
--
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]