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 2019/06/30 11:51:21 UTC

[GitHub] [pulsar] sijie opened a new issue #4643: Per message sequence id is lost in message batch

sijie opened a new issue #4643: Per message sequence id is lost in message batch
URL: https://github.com/apache/pulsar/issues/4643
 
 
   **Describe the bug**
   
   Produce 10 messages using following code:
   
   ```
                   for (int i = 1; i <= numMessages; i++) {
                       producer.newMessage()
                           .value("value-" + i)
                           .sequenceId(i)
                           .sendAsync();
                   }
                   producer.flush();
   ```
   
   The 10 messages will return the same sequence id `1`. Because currently we only store the sequence id for the first message in the message batch.
   
   **To Reproduce**
   
   Run the code example
   
   **Expected behavior**
   
   User might be using offset as sequence id when copying a file into pulsar topic. The sequence id will be dropped by Pulsar and the consumers can't retrieve the sequence id that the producer set.
   
   **Additional context**
   
   N/A

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services