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

Chia-Ping Tsai reassigned KAFKA-16544:
--------------------------------------

    Assignee: Chia-Ping Tsai

> DescribeTopicsResult#allTopicIds and DescribeTopicsResult#allTopicNames 
> should return null instead of throwing NPE
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-16544
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16544
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Major
>
> {code:java}
>      * @return A future map from topic names to descriptions which can be 
> used to check
>      *         the status of individual description if the describe topic 
> request used
>      *         topic names, otherwise return null, this request succeeds only 
> if all the
>      *         topic descriptions succeed
> {code}
> According the docs, it should return null if we try to get the result 
> unmatched to the request. For example, we call `allTopicNames` in passing 
> `TopicIdCollection`. However, the current implementation will throw NPE 
> directly



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to