FrankYang0529 commented on code in PR #16876:
URL: https://github.com/apache/kafka/pull/16876#discussion_r1718477179


##########
clients/src/main/java/org/apache/kafka/common/requests/ListOffsetsRequest.java:
##########
@@ -95,13 +96,33 @@ public Builder setTargetTimes(List<ListOffsetsTopic> 
topics) {
 
         @Override
         public ListOffsetsRequest build(short version) {
+            for (ListOffsetsTopic topic : data.topics()) {
+                for (ListOffsetsPartition partition : topic.partitions()) {
+                    checkVersion(version, topic.name(), partition);

Review Comment:
   The failed case 
`ListOffsetsRequestTest#testResponseDefaultOffsetAndLeaderEpochForAllVersions` 
can be reproduced on my laptop. Could you take a look? Thank you.



-- 
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]

Reply via email to