Browse Source

MINOR: Change topic-exists log for CreateTopics from INFO to DEBUG (#7666)

Reviewers: Ismael Juma <ismael@juma.me.uk>
pull/5447/merge
Rajini Sivaram 5 years ago committed by GitHub
parent
commit
f15d318aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      core/src/main/scala/kafka/server/AdminManager.scala

3
core/src/main/scala/kafka/server/AdminManager.scala

@ -179,6 +179,9 @@ class AdminManager(val config: KafkaConfig, @@ -179,6 +179,9 @@ class AdminManager(val config: KafkaConfig,
CreatePartitionsMetadata(topic.name, assignments, ApiError.NONE)
} catch {
// Log client errors at a lower level than unexpected exceptions
case e: TopicExistsException =>
debug(s"Topic creation failed since topic '${topic.name}' already exists.", e)
CreatePartitionsMetadata(topic.name, Map(), ApiError.fromThrowable(e))
case e: ApiException =>
info(s"Error processing create topic request $topic", e)
CreatePartitionsMetadata(topic.name, Map(), ApiError.fromThrowable(e))

Loading…
Cancel
Save