Skip to content

Commit bd0caa7

Browse files
committed
warn (not error) on LeaderNotAvailable - this is usually not cause for concern
1 parent 15b4b40 commit bd0caa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kafka/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def update_metadata(self, metadata):
143143
TopicPartition(topic, partition))
144144

145145
elif error_type is Errors.LeaderNotAvailableError:
146-
log.error("Topic %s is not available during auto-create"
147-
" initialization", topic)
146+
log.warning("Topic %s is not available during auto-create"
147+
" initialization", topic)
148148
elif error_type is Errors.UnknownTopicOrPartitionError:
149149
log.error("Topic %s not found in cluster metadata", topic)
150150
elif error_type is Errors.TopicAuthorizationFailedError:

0 commit comments

Comments
 (0)