Stevo Slavic created KAFKA-2358:
-----------------------------------
Summary: KafkaConsumer.partitionsFor should never return null
Key: KAFKA-2358
URL: https://issues.apache.org/jira/browse/KAFKA-2358
Project: Kafka
Issue Type: Improvement
Affects Versions: 0.8.3
Reporter: Stevo Slavic
Priority: Minor
{{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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)