summaryrefslogtreecommitdiff
path: root/kafka/consumer/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/consumer/base.py')
-rw-r--r--kafka/consumer/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/base.py b/kafka/consumer/base.py
index 78f376e..75c3ee1 100644
--- a/kafka/consumer/base.py
+++ b/kafka/consumer/base.py
@@ -53,7 +53,7 @@ class Consumer(object):
self.client = client
self.topic = topic
self.group = group
- self.client.load_metadata_for_topics(topic)
+ self.client.load_metadata_for_topics(topic, ignore_leadernotavailable=True)
self.offsets = {}
if partitions is None: