BewareMyPower opened a new pull request, #151:
URL: https://github.com/apache/pulsar-client-cpp/pull/151

   Fixes https://github.com/apache/pulsar-client-cpp/issues/87
   
   ### Modifications
   
   - Add an consumer configuration `setBatchIndexAckEnabled` to enable the 
batch index ACK. When it's enabled, passing the original `MessageId` instead of 
the `MessageIdImpl` that trunks the batch index to the ACK grouping tracker.
   - Since now a `BatchedMessageIdImpl` could be accepted in the ACK grouping 
tracker, fix the compare logic.
   - Support passing a `BitSet` in `Commands::newAck` and get the internal 
`BitSet` from `MessageId` in `Commands::newMultiMessageAck`.
   - Skip the acknowledged batch indexes when receiving batched messages in 
`ConsumerImpl::receiveIndividualMessagesFromBatch`.
   
   ### Verifications
   
   Modify `BitSetTest.testSet` to verify the `BitSet::get` method added in this 
commit.
   
   Add `AcknowledgeTest.testBatchIndexAck` to test batch index ACK for all 
types of acknowledgment:
   - Individual ACK for a single message
   - Individual ACK for a list of messages
   - Cumulative ACK
   
   Add `AcknowledgeTest.testMixedCumulativeAck` to test the new compare logic 
between `BatchedMessageIdImpl` and `MessageIdImpl` works for cumulative ACK.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [x] `doc-not-needed` 
   (Please explain why)
   
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to