zzzming opened a new pull request #5990: [Issue 5969] prevent redelivery of 
acked batch message at the client api
URL: https://github.com/apache/pulsar/pull/5990
 
 
   ### Motivation
   To address redelivered of acked batch message described by 
https://github.com/apache/pulsar/issues/5969
   
   This is only a client side change. It covers cases of not-to-deliver-acked 
batch message on the client side only. Since it tracks acked messages of 
partial acked batch in memory, restart of client will lose the state tracking.
   
   ### Modifications
   A new BatchAckedTracker is added to track all acked message in any partially 
acked batches. Redelivery of unacked batch will be evaluated against this 
tracker so that it sends only unacked messages to the client in ConsumerImpl. 
When all messages are acked by the client in redelivery, ConsumerImpl sends the 
batch ack to the broker.
   
   This only addresses the issue in Java client. C++, and standalone Go clients 
updates will be tracked in separated PR.
   
   
   ### Verifying this change
   
   Three new unit tests are introduced.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: ( no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable)
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to