warn (not error) on LeaderNotAvailable - this is usually not cause for concern
This commit is contained in:
@@ -143,8 +143,8 @@ class ClusterMetadata(object):
|
|||||||
TopicPartition(topic, partition))
|
TopicPartition(topic, partition))
|
||||||
|
|
||||||
elif error_type is Errors.LeaderNotAvailableError:
|
elif error_type is Errors.LeaderNotAvailableError:
|
||||||
log.error("Topic %s is not available during auto-create"
|
log.warning("Topic %s is not available during auto-create"
|
||||||
" initialization", topic)
|
" initialization", topic)
|
||||||
elif error_type is Errors.UnknownTopicOrPartitionError:
|
elif error_type is Errors.UnknownTopicOrPartitionError:
|
||||||
log.error("Topic %s not found in cluster metadata", topic)
|
log.error("Topic %s not found in cluster metadata", topic)
|
||||||
elif error_type is Errors.TopicAuthorizationFailedError:
|
elif error_type is Errors.TopicAuthorizationFailedError:
|
||||||
|
|||||||
Reference in New Issue
Block a user