AndrewJSchofield commented on code in PR #20246:
URL: https://github.com/apache/kafka/pull/20246#discussion_r2491288015
##########
clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java:
##########
@@ -380,14 +380,25 @@ public class ConsumerConfig extends AbstractConfig {
" If set to <code>explicit</code>, the acknowledgement mode of the
consumer is explicit and it must use" +
"
<code>org.apache.kafka.clients.consumer.ShareConsumer.acknowledge()</code> to
acknowledge delivery of records.";
+ /**
+ * <code>share.acquire.mode</code>
+ */
+ public static final String SHARE_ACQUIRE_MODE_CONFIG =
"share.acquire.mode";
+ private static final String SHARE_ACQUIRE_MODE_DOC = "Controls the acquire
mode for a share consumer." +
+ " If set to <code>record_limit</code>, the number of records
returned in each poll() will not exceed the value of
<code>max.poll.records</code>." +
+ " If set to <code>batch_optimized</code>, the number of records
returned in each poll() call may exceed <code>max.poll.records</code>" +
+ " to align with batch boundaries for optimization.";
+ public static final String DEFAULT_SHARE_ACQUIRE_MODE =
ShareAcquireMode.RECORD_LIMIT.name();
Review Comment:
The default is `BATCH_OPTIMIZED` I think according to KIP-1206 :)
--
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]