Skip to content

Commit

Permalink
Do not log topic-specific errors in full metadata fetch (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpkp authored Dec 30, 2019
1 parent 2a86b23 commit 46882a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kafka/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ def update_metadata(self, metadata):
_new_broker_partitions[leader].add(
TopicPartition(topic, partition))

# Specific topic errors can be ignored if this is a full metadata fetch
elif self.need_all_topic_metadata:
continue

elif error_type is Errors.LeaderNotAvailableError:
log.warning("Topic %s is not available during auto-create"
" initialization", topic)
Expand Down

0 comments on commit 46882a8

Please sign in to comment.