labuladong commented on PR #17836:
URL: https://github.com/apache/pulsar/pull/17836#issuecomment-1321301674
> For example we send 4 messages (msg1, msg2, msg3, msg4) to the broker and
then the 4 messages may get 4 sequence Id (1, 3, 2, 4)
For your example, is this helpful to reproduce the issue you mentioned?
```java
producer.newMessage(transaction).value("msg1".getBytes()).sequenceId(1).send();
producer.newMessage(transaction).value("msg2".getBytes()).sequenceId(3).send();
producer.newMessage(transaction).value("msg3".getBytes()).sequenceId(2).send();
producer.newMessage(transaction).value("msg4".getBytes()).sequenceId(4).send();
```
--
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]