chia7712 commented on code in PR #15489: URL: https://github.com/apache/kafka/pull/15489#discussion_r1534178664
########## tools/src/test/java/org/apache/kafka/tools/GetOffsetShellTest.java: ########## @@ -182,14 +187,19 @@ public void testTopicPartitionsArg() { setUp(); List<Row> offsets = executeAndParse("--topic-partitions", "topic1:0,topic2:1,topic(3|4):2,__.*:3"); - List<Row> expected = Arrays.asList( - new Row("__consumer_offsets", 3, 0L), + ArrayList<Row> expected = new ArrayList<>( + Arrays.asList( new Row("topic1", 0, 1L), new Row("topic2", 1, 2L), new Row("topic3", 2, 3L), new Row("topic4", 2, 4L) + ) ); + if (!cluster.isKRaftTest()) { Review Comment: > Shall we create an internal topic when running in Kraft mode ? yep, we can create a consumer to read records before verifying the match pattern -- 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