You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Magnus Edenhill (JIRA)" <ji...@apache.org> on 2018/04/11 10:55:00 UTC
[jira] [Created] (KAFKA-6778) DescribeConfigs does not return error
for non-existent topic
Magnus Edenhill created KAFKA-6778:
--------------------------------------
Summary: DescribeConfigs does not return error for non-existent topic
Key: KAFKA-6778
URL: https://issues.apache.org/jira/browse/KAFKA-6778
Project: Kafka
Issue Type: Bug
Components: admin
Affects Versions: 1.1.0
Reporter: Magnus Edenhill
Sending a DescribeConfigsRequest with a ConfigResource(TOPIC, "non-existent-topic") returns a fully populated ConfigResource back in the response with 24 configuration entries.
A resource-level error_code of UnknownTopic.. would be expected instead.
{code:java}
[0081_admin / 1.143s] ConfigResource #0: type TOPIC (2), "rdkafkatest_rnd3df408bf5d94d696_DescribeConfigs_notexist": 24 ConfigEntries, error NO_ERROR ()
[0081_admin / 1.144s] #0/24: Source UNKNOWN (5): "compression.type"="producer" [is read-only=n, default=n, sensitive=n, synonym=n] with 1 synonym(s)
....
{code}
But the topic does not exist:
{code:java}
$ $KAFKA_PATH/bin/kafka-topics.sh --zookeeper $ZK_ADDRESS --list | grep rdkafkatest_rnd3df408bf5d94d696_DescribeConfigs_notexist ; echo $?
1
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)