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/05/06 12:24:36 UTC

[GitHub] [pulsar] codelipenghui commented on pull request #15413: [Java Client] Fix wrong behavior of deduplication for key based batching

codelipenghui commented on PR #15413:
URL: https://github.com/apache/pulsar/pull/15413#issuecomment-1119560827

   ```java
   messagesToSend.add(producer.newMessage().value("msg-0").key("A").sequenceId(0));
   messagesToSend.add(producer.newMessage().value("msg-1").key("B").sequenceId(1));
   messagesToSend.add(producer.newMessage().value("msg-2").key("B").sequenceId(2));
   messagesToSend.add(producer.newMessage().value("msg-3").key("A").sequenceId(3));
   ```
   
   What is the expected behavior for the above case? 
   
   The deduplication depends on the monotonically increasing sequence ID, but the key-based
   batcher will break the rule. 
   
   
   


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