Skip to content

Commit

Permalink
Always return sorted partition ids in KafkaClient.get_partition_ids_f…
Browse files Browse the repository at this point in the history
…or_topic()
  • Loading branch information
Dana Powers committed Feb 9, 2015
1 parent 87f3e10 commit 0c0c66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def get_partition_ids_for_topic(self, topic):
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()
Expand Down

0 comments on commit 0c0c66b

Please sign in to comment.