Minoru Tomioka created KAFKA-14355: -------------------------------------- Summary: Integer overflow occurs in kafka-producer-perf-test.sh (class ProducerProfrmance ). Key: KAFKA-14355 URL: https://issues.apache.org/jira/browse/KAFKA-14355 Project: Kafka Issue Type: Bug Components: tools Affects Versions: 3.3.1 Reporter: Minoru Tomioka Assignee: Minoru Tomioka
An integer overflow occurs if a fairly large value is passed to {{{}--num-records{}}}. It causes a {{{}NegativeArraySizeException error{}}}. {code:java} ./bin/kafka-producer-perf-test.sh --topic=test --producer-props bootstrap.servers=localhost:9092 --num-records 2000000000000000 --throughput 1 --record-size 10 Exception in thread "main" java.lang.NegativeArraySizeException at org.apache.kafka.tools.ProducerPerformance$Stats.<init>(ProducerPerformance.java:354) at org.apache.kafka.tools.ProducerPerformance.start(ProducerPerformance.java:97) at org.apache.kafka.tools.ProducerPerformance.main(ProducerPerformance.java:52){code} -- This message was sent by Atlassian Jira (v8.20.10#820010)