m1a2st commented on code in PR #22326:
URL: https://github.com/apache/kafka/pull/22326#discussion_r3599830969


##########
tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java:
##########
@@ -623,6 +678,20 @@ public ConfigPostProcessor(ArgumentParser parser, String[] 
args) throws IOExcept
             if (reportingInterval <= 0) {
                 throw new ArgumentParserException("--reporting-interval should 
be greater than zero.", parser);
             }
+            this.recordKeyRange = namespace.getInt("recordKeyRange");
+            if (recordKeyRange != null && recordKeyRange <= 0) {

Review Comment:
   Using --record-key-range `1` achieves this, since `recordIndex % 1` is 
always `0`, all records will get key "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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to