You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2023/01/11 06:49:26 UTC

[GitHub] [kafka] ijuma commented on a diff in pull request #13094: MINOR: Various cleanups in client tests

ijuma commented on code in PR #13094:
URL: https://github.com/apache/kafka/pull/13094#discussion_r1066628366


##########
clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java:
##########
@@ -266,7 +266,14 @@ public void add(TopicPartition topicPartition, PartitionData data) {
             }
         }
 
+        /**
+         * Build a FetchRequestData for the provided partitions
+         * @throws IllegalStateException if it has already been called
+         */
         public FetchRequestData build() {
+            if (next == null) {
+                throw new IllegalStateException("build() has already been called.");

Review Comment:
   This is not a test change?



-- 
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-unsubscribe@kafka.apache.org

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