RongtongJin opened a new issue #1720: Optimise TransactionProducer in benchmark URL: https://github.com/apache/rocketmq/issues/1720 The issue tracker is **ONLY** used for bug report(feature request need to follow [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal)). Keep in mind, please check whether there is an existing same report before your raise a new one. Alternately (especially if your communication is not a bug report), you can send mail to our [mailing lists](http://rocketmq.apache.org/about/contact/). We welcome any friendly suggestions, bug fixes, collaboration and other improvements. Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following: **FEATURE REQUEST** 1. Please describe the feature you are requesting. Enhanced the tx benchmark producer, it can detect unexpected tx check and duplicated tx check. usage: ``` usage: TransactionProducer [-b <arg>] [-cr <arg>] [-cu <arg>] [-h] [-i <arg>] [-n <arg>] [-s <arg>] [-sr <arg>] [-su <arg>] [-t <arg>] [-w <arg>] -b,--test batch id <arg> test batch id, Default: System.currentMillis() -cr,--check rollback rate <arg> Check rollback rate, Default: 0.0 -cu,--check unknown rate <arg> Check unknown rate, Default: 0.0 -h,--help Print help -i,--send interval <arg> sleep interval in millis between messages, Default: 0 -n,--namesrvAddr <arg> Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876 -s,--messageSize <arg> Message Size, Default: 2048 -sr,--send rollback rate <arg> Send rollback rate, Default: 0.0 -su,--send unknown rate <arg> Send unknown rate, Default: 0.0 -t,--topic <arg> Topic name, Default: BenchmarkTest -w,--threadCount <arg> Thread count, Default: 32 ``` example parameters: ``` -n 127.0.0.1:19876 -w 2 -s 6000 -i 5 -su 0.05 -sr 0.05 -cu 0.25 -cr 0.3 ``` output ``` Send TPS: 240 Max RT: 292 AVG RT:2.8 Send Failed: 0 check: 0 unexpectedCheck: 0 duplicatedCheck: 0 Send TPS: 259 Max RT: 69 AVG RT:2.3 Send Failed: 0 check: 101 unexpectedCheck: 0 duplicatedCheck: 0 Send TPS: 259 Max RT: 60 AVG RT:2.2 Send Failed: 0 check: 131 unexpectedCheck: 0 duplicatedCheck: 0 Send TPS: 266 Max RT: 30 AVG RT:2.0 Send Failed: 0 check: 147 unexpectedCheck: 0 duplicatedCheck: 0 Send TPS: 265 Max RT: 35 AVG RT:2.1 Send Failed: 0 check: 161 unexpectedCheck: 0 duplicatedCheck: 0 Send TPS: 266 Max RT: 48 AVG RT:2.0 Send Failed: 0 check: 156 unexpectedCheck: 0 duplicatedCheck: 0 Send TPS: 268 Max RT: 94 AVG RT:2.0 Send Failed: 0 check: 172 unexpectedCheck: 0 duplicatedCheck: 0 ```
---------------------------------------------------------------- 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
