liangyepianzhou commented on PR #16981:
URL: https://github.com/apache/pulsar/pull/16981#issuecomment-1207736215

   The consumer will reconnect and the message duplication is not expected.
   We produce 505 messages.
   The PerformanceConsumer will ack the messages (0-500) with the transactions 
and then commit the transactions.
   When the consumer reconnects, we hope only the messages (501-505) can be 
received.
   Because the transaction commit is 
[async](https://github.com/apache/pulsar/blob/master/pulsar-testclient/src/main/java/org/apache/pulsar/testclient/PerformanceConsumer.java#L359),
  the last transaction may not have been committed.
   And then the consumer will receive message (400 - 505).


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