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

kafka-reassign-partitions command should give a better error message when a topic does not exist

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      The `kafka-reassign-partitions` command spits out a generic when the reassignment contains a topic which does not exist:

      $ ./bin/kafka-reassign-partitions.sh --bootstrap-server localhost:9092 --execute --reassignment-json-file reassignment.json
      Error: org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition.
      

      When the reassignment contains multiple topic-partitions, this is quite annoying. It would be better if it could at least give the concerned topic-partition.

      Attachments

        Issue Links

          Activity

            People

              dajac David Jacot
              dajac David Jacot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: