Description
An integer overflow occurs if a fairly large value is passed to --num-records. It causes a NegativeArraySizeException error.
./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)
Attachments
Issue Links
- links to