eolivelli commented on pull request #9860: URL: https://github.com/apache/pulsar/pull/9860#issuecomment-795439481
> BTW, we need to point out it needs to enable message deduplication, otherwise, the duplicated message is expected behavior. this is true in case of temporary failures and retrials (at different levels), but in a system where you have total control and that you are sure that has no issues (otherwise the tests fails anyway) it must be possible to verify that a consumer receives a message only once. > bin/pulsar-perf check-duplication check-ordering I did not go that way because I am already using pulsar-client in order to inspect the contents of the topic and perform other kind of validations. Also I would like to have only one single command that does as much validations as possible. The other approach I was thinking about it to add the ability to pass a script (groovy, js...whatever) that is executed during the most important parts: initialisation, message reception, end, error condition. This way it will be easier to implement other kind of validations without the need to hardcode them into the tool. That said, having a bunch of simple but useful functions looks more useful for downstream users, as we can document how to use the tool. With a script based approach everyone should write its own validation code ---------------------------------------------------------------- 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: us...@infra.apache.org