pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [pulsar] merlimat commented on pull request #6796: Support cumulative acknowledgement when consuming partitioned topics for C++ client
Date Thu, 23 Apr 2020 19:08:48 GMT

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

View raw message