lordcheng10 commented on code in PR #18107:
URL: https://github.com/apache/pulsar/pull/18107#discussion_r999357358


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PersistentAcknowledgmentsGroupingTracker.java:
##########
@@ -60,7 +60,7 @@ public class PersistentAcknowledgmentsGroupingTracker 
implements Acknowledgments
     /**
      * When reaching the max group size, an ack command is sent out 
immediately.
      */
-    private static final int MAX_ACK_GROUP_SIZE = 1000;
+    private int MAX_ACK_GROUP_SIZE;

Review Comment:
   Fixed,PTAL,thanks! @RobertIndie 



##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBuilderImpl.java:
##########
@@ -327,6 +327,14 @@ public ConsumerBuilder<T> acknowledgmentGroupTime(long 
delay, TimeUnit unit) {
         return this;
     }
 
+    @Override
+    public ConsumerBuilder<T> acknowledgmentGroupSize(int messageNum) {
+        checkArgument(messageNum >= 0, "acknowledgementsGroupSize needs to be 
>= 0");

Review Comment:
   Fixed,PTAL,thanks! @RobertIndie 



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