diff options
author | Dana Powers <dana.powers@rd.io> | 2015-02-08 21:35:16 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2015-02-09 09:42:16 -0800 |
commit | cc6e8bbb22dc592224757d96579867c58b975803 (patch) | |
tree | 8a3d9c1cd24364bff7e157c3d95d1a17fd78fe71 /kafka/client.py | |
parent | f206a4bbf0b0e39cf13c7c5918a99abc085d004d (diff) | |
download | kafka-python-cc6e8bbb22dc592224757d96579867c58b975803.tar.gz |
Always return sorted partition ids in KafkaClient.get_partition_ids_for_topic()
Diffstat (limited to 'kafka/client.py')
-rw-r--r-- | kafka/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/client.py b/kafka/client.py index 7b04e71..f8fe555 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -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() |