We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f206a4b + cc6e8bb commit 3ab9a42Copy full SHA for 3ab9a42
kafka/client.py
@@ -261,7 +261,7 @@ def get_partition_ids_for_topic(self, topic):
261
if topic not in self.topic_partitions:
262
return None
263
264
- return list(self.topic_partitions[topic])
+ return sorted(list(self.topic_partitions[topic]))
265
266
def ensure_topic_exists(self, topic, timeout = 30):
267
start_time = time.time()
0 commit comments