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 2022/09/09 11:38:24 UTC

[GitHub] [pulsar] tarunannapareddy opened a new issue, #17574: [feature request] Java Client support to Cumulative Acknowledge messages for multiple partitions or topics

tarunannapareddy opened a new issue, #17574:
URL: https://github.com/apache/pulsar/issues/17574

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Motivation
   
   **Email from Yunze Xu**
   
   Assuming users called "acknowledgeCumulative" periodically, there is a chance that some messages of the specific partition has never been passed to the method.
   For example, a consumer received: P0-M0, P1-M0, P0-M1, P1-M1, P0-M2, P1-M2...
   And the user acknowledged every two messages, i.e. P0-M0, P0-M1, P0-M2. Eventually, partition 1 has never been acknowledged. User must maintain its own `Map<String, MessageId&gt> cache for a partitioned topic or multi-topics consumer with the existing "acknowledgeCumulative" API.
   
   Should we make it more friendly for users? For example, we can make "acknowledgeCumulative"  accept the map to remind users to maintain the map from topic name to message ID:
   **java**
   ```
    // the key is the partitioned topic name like my-topic-partition-0
    void acknowledgeCumulative(Map<String, MessageId> topicToMessageId);
   ```
   
   ### Solution
   
   Implement acknowledgeCumulative(Map<String, MessageId> topicToMessageId) 
   
   ### Alternatives
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

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


[GitHub] [pulsar] github-actions[bot] commented on issue #17574: [PIP] Java Client support to Cumulative Acknowledge messages for multiple partitions or topics

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #17574:
URL: https://github.com/apache/pulsar/issues/17574#issuecomment-1278382366

   The issue had no activity for 30 days, mark with Stale label.


-- 
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: commits-unsubscribe@pulsar.apache.org

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