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/08/08 06:51:35 UTC

[GitHub] [pulsar] liangyepianzhou commented on pull request #16981: [Fix][Flaky-test] Fix testConsumeTxnMessage

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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org