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: [email protected] With regards, Apache Git Services
