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 2020/04/23 19:08:48 UTC

[GitHub] [pulsar] merlimat commented on pull request #6796: Support cumulative acknowledgement when consuming partitioned topics for C++ client

merlimat commented on pull request #6796:
URL: https://github.com/apache/pulsar/pull/6796#issuecomment-618600371


   > acknowledgementCumulative on a partitioned topic means acknowledging cumulative the messages of the partition inferred by the MessageId.
   
   If I'm consuming from a partitioned topic, I'll get a single stream of messages from multiple partitions.
   
   Eg. `P1_M1`, `P2_M1`, `P2_M2`, `P1_M2`. 
   
   Calling cumulative ack on `P1_M2` would be semantically completely different in the case of partitioned/non-partitioned case.
   
   If you're consuming these messages, and say, acking cumulative every 1 second, you might never be acking on some of the partitions.
   
   The only way for the cumulative ack to make sense with partitions is if the client lib would be keeping track, for a given message id, of all the highest message ids in the other partitions that we were queued before it in the shared queue.


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

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