summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2019-03-13 21:46:36 -0700
committerDana Powers <dana.powers@gmail.com>2019-03-13 21:46:36 -0700
commit752c6e649eef95b96dd0ddca356c9c77ff32de5a (patch)
tree8e3a697381c9465bae668e4bc29841db7814c589
parent0e541e2f03cee2825fbff534ee9a337220ed08a2 (diff)
downloadkafka-python-bootstrap_cluster_metadata.tar.gz
Do not user bootstrap_topics_filter unless topics is emptybootstrap_cluster_metadata
-rw-r--r--kafka/client_async.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py
index 9ce0f32..a5be3cd 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -784,10 +784,9 @@ class KafkaClient(object):
return self.config['reconnect_backoff_ms']
if self._can_send_request(node_id):
- if node_id == 'bootstrap':
+ topics = list(self._topics)
+ if not topics and node_id == 'bootstrap':
topics = list(self.config['bootstrap_topics_filter'])
- else:
- topics = list(self._topics)
if self.cluster.need_all_topic_metadata or not topics:
topics = [] if self.config['api_version'] < (0, 10) else None