You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/03/23 17:10:17 UTC

[GitHub] merlimat commented on a change in pull request #1424: Improve batch message acking by removing batch message tracker

merlimat commented on a change in pull request #1424: Improve batch message acking by removing batch message tracker
URL: https://github.com/apache/incubator-pulsar/pull/1424#discussion_r176799744
 
 

 ##########
 File path: pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
 ##########
 @@ -442,38 +382,6 @@ boolean markAckForBatchMessage(BatchMessageIdImpl batchMessageId, AckType ackTyp
         return false;
     }
 
-    // if we are consuming a mix of batch and non-batch messages then cumulative ack on non-batch messages
-    // should clean up the ack tracker as well
-    private void updateBatchAckTracker(MessageIdImpl message, AckType ackType) {
-        if (batchMessageAckTracker.isEmpty()) {
-            return;
-        }
-        MessageIdImpl lowerKey = batchMessageAckTracker.lowerKey(message);
 
 Review comment:
   I don't see how this logic to remove all entries from previous batches (when doing cumulative ack) has been replaced.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services