[
https://issues.apache.org/jira/browse/KAFKA-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Compton updated KAFKA-1517:
----------------------------------
Status: Patch Available (was: Open)
I've attached a patch for this. Let me know if the patch isn't correct, I
wasn't sure I was doing it correctly.
> Messages is a required argument to Producer Performance Test
> ------------------------------------------------------------
>
> Key: KAFKA-1517
> URL: https://issues.apache.org/jira/browse/KAFKA-1517
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.8.1.1
> Reporter: Daniel Compton
> Priority: Trivial
> Labels: newbie
> Attachments: 0001-KAFKA-1517-Make-messages-a-required-argument.patch
>
>
> When running the producer performance test without providing a messages
> argument, you get an error:
> {noformat}
> $bin/kafka-producer-perf-test.sh --topics mirrormirror --broker-list
> kafka-dc21:9092
> Missing required argument "[messages]"
> Option Description
> ------ -----------
> ......
> --messages <Long: count> The number of messages to send or
> consume (default:
> 9223372036854775807)
> {noformat}
> However the [shell command
> documentation|https://github.com/apache/kafka/blob/c66e408b244de52f1c5c5bbd7627aa1f028f9a87/perf/src/main/scala/kafka/perf/PerfConfig.scala#L25]
> doesn't say that this is required and implies that
> [2^63-1|http://en.wikipedia.org/wiki/9223372036854775807] (Long.MaxValue)
> messages will be sent. It should probably look like the
> [ConsoleProducer|https://github.com/apache/kafka/blob/c66e408b244de52f1c5c5bbd7627aa1f028f9a87/core/src/main/scala/kafka/producer/ConsoleProducer.scala#L32]
> and prefix the documentation with REQUIRED. Or should we make this a
> non-required argument and set the default value to something sane like
> 100,000 messages.
> Which option is preferable for this?
--
This message was sent by Atlassian JIRA
(v6.2#6252)