aheev commented on code in PR #20385: URL: https://github.com/apache/kafka/pull/20385#discussion_r2301897463
########## tools/src/main/java/org/apache/kafka/tools/ConsumerPerformance.java: ########## @@ -378,8 +402,10 @@ public Optional<Pattern> include() { : Optional.empty(); } - public long numMessages() { - return options.valueOf(numMessagesOpt); + public long numRecords() { + return options.has(numMessagesOpt) + ? options.valueOf(numMessagesOpt) + : options.valueOf(numRecordsOpt); Review Comment: Added the warning in `ConsumerPerfOptions` constructor -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org