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

TopicCommand doesn't warn if --topic argument doesn't match any topics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • tools

    Description

      Running kafka-topics.sh -alter with an invalid -topic argument produces no output and exits with 0, indicating success.

      $ bin/kafka-topics.sh --topic does-not-exist --alter --config invalid=xxx --zookeeper zkhost:2181
      $ echo $?
      0
      

      An invalid topic name or a regular expression that matches 0 topics should at least print a warning.

      Attachments

        1. KAFKA-1668.patch
          1 kB
          Manikumar

        Activity

          People

            omkreddy Manikumar
            rberdeen Ryan Berdeen
            Jay Kreps Jay Kreps
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: