CalvinConfluent commented on code in PR #15470:
URL: https://github.com/apache/kafka/pull/15470#discussion_r1513643851


##########
clients/src/main/java/org/apache/kafka/clients/admin/DescribeTopicsOptions.java:
##########
@@ -47,8 +49,32 @@ public DescribeTopicsOptions 
includeAuthorizedOperations(boolean includeAuthoriz
         return this;
     }
 
+    /**
+     * Whether to use the DescribeTopicPartitions API. It should be set to 
false if DescribeTopicPartitions API is
+     * not supported.
+     *
+     */
+    public DescribeTopicsOptions useDescribeTopicPartitionsApi(boolean 
useDescribeTopicPartitionsApi) {
+        this.useDescribeTopicPartitionsApi = useDescribeTopicPartitionsApi;
+        return this;
+    }
+
+    // Note that, partitionSizeLimitPerResponse will not be effective if it is 
larger than the config
+    // max.request.partition.size.limit on the server side.

Review Comment:
   Right now I don't think this config is useful because we are not doing the 
client-side pagination. The config only makes sense if one batch of partitions 
is large enough to cause client-side OOM.
   Maybe we should add this config in the future? What do you think?



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