You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ismael Juma (JIRA)" <ji...@apache.org> on 2017/06/02 01:34:04 UTC

[jira] [Resolved] (KAFKA-2358) Cluster collection returning methods should never return null

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

Ismael Juma resolved KAFKA-2358.
--------------------------------
    Resolution: Fixed

> Cluster collection returning methods should never return null
> -------------------------------------------------------------
>
>                 Key: KAFKA-2358
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2358
>             Project: Kafka
>          Issue Type: Improvement
>    Affects Versions: 0.9.0.0
>            Reporter: Stevo Slavic
>            Assignee: Stevo Slavic
>            Priority: Minor
>             Fix For: 0.11.0.0
>
>
> {{KafkaConsumer.partitionsFor}} method by it's signature returns a {{List<PartitionInfo>}}. Problem is that in case (metadata for) topic does not exist, current implementation will return null, which is considered a bad practice - instead of null it should return empty list.
> Root cause is that the Cluster collection returning methods are returning null.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)