Affects Version/s: None
Fix Version/s: None
First, start a Kafka server (2.2.0+), with no topic on it.
Then run `kafka-topics.sh --describe --zookeeper ...:2181` to get topic details
Expected Behavior should be the command prints nothing and return 0.
The command throws an exception and exit with 1.
IIRC, the version before 2.2.0 did not throw exceptions.
describing with -bootstrap-server will exit 0 and print nothing.
list with either bootstrap-server and -zookeeper will also exit 0 and prints nothing.
I did some quick search and seems this issue is introduced by https://issues.apache.org/jira/browse/KAFKA-7054. I didn't check which exact line caused the exception. Hope that will help.