You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (JIRA)" <ji...@apache.org> on 2018/04/26 21:02:00 UTC

[jira] [Resolved] (KAFKA-6778) DescribeConfigs does not return error for non-existent topic

     [ https://issues.apache.org/jira/browse/KAFKA-6778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Gustafson resolved KAFKA-6778.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

> 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
>            Assignee: Manikumar
>            Priority: Major
>             Fix For: 2.0.0
>
>
> 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)