KafkaClient.get_partition_ids_for_topic now returns empty list for unknown topics
This commit is contained in:
@@ -265,7 +265,7 @@ class KafkaClient(object):
|
||||
|
||||
def get_partition_ids_for_topic(self, topic):
|
||||
if topic not in self.topic_partitions:
|
||||
return None
|
||||
return []
|
||||
|
||||
return sorted(list(self.topic_partitions[topic]))
|
||||
|
||||
|
Reference in New Issue
Block a user