You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kuan Po Tseng (Jira)" <ji...@apache.org> on 2024/04/13 09:36:00 UTC
[jira] [Commented] (KAFKA-16544) DescribeTopicsResult#allTopicIds and DescribeTopicsResult#allTopicNames should return null instead of throwing NPE
[ https://issues.apache.org/jira/browse/KAFKA-16544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17836797#comment-17836797 ]
Kuan Po Tseng commented on KAFKA-16544:
---------------------------------------
gentle ping [~chia7712], are you working on this one ? Maybe I can give it a try ! :)
> 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)