Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1517

Messages is a required argument to Producer Performance Test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.8.1.1
    • 0.9.0.0
    • None

    Description

      When running the producer performance test without providing a messages argument, you get an error:

      $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)
      

      However the shell command documentation doesn't say that this is required and implies that 2^63-1 (Long.MaxValue) messages will be sent. It should probably look like the ConsoleProducer 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?

      Attachments

        Activity

          People

            danielcompton Daniel Compton
            danielcompton Daniel Compton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: