Always return sorted partition ids in KafkaClient.get_partition_ids_for_topic()

This commit is contained in:
Dana Powers
2015-02-08 21:35:16 -08:00
parent f206a4bbf0
commit cc6e8bbb22

View File

@@ -261,7 +261,7 @@ class KafkaClient(object):
if topic not in self.topic_partitions:
return None
return list(self.topic_partitions[topic])
return sorted(list(self.topic_partitions[topic]))
def ensure_topic_exists(self, topic, timeout = 30):
start_time = time.time()