aliehsaeedii commented on code in PR #20325: URL: https://github.com/apache/kafka/pull/20325#discussion_r2273377362
########## core/src/main/scala/kafka/server/AutoTopicCreationManager.scala: ########## @@ -134,11 +180,20 @@ class DefaultAutoTopicCreationManager( override def onComplete(response: ClientResponse): Unit = { clearInflightRequests(creatableTopics) if (response.authenticationException() != null) { - warn(s"Auto topic creation failed for ${creatableTopics.keys} with authentication exception") + val authException = response.authenticationException() + warn(s"Auto topic creation failed for ${creatableTopics.keys} with authentication exception: ${authException.getMessage}") + cacheTopicCreationErrors(creatableTopics.keys.toSet, authException.getMessage) } else if (response.versionMismatch() != null) { - warn(s"Auto topic creation failed for ${creatableTopics.keys} with invalid version exception") + val versionException = response.versionMismatch() + warn(s"Auto topic creation failed for ${creatableTopics.keys} with version mismatch exception: ${versionException.getMessage}") + cacheTopicCreationErrors(creatableTopics.keys.toSet, versionException.getMessage) } else { - debug(s"Auto topic creation completed for ${creatableTopics.keys} with response ${response.responseBody}.") + response.responseBody() match { + case createTopicsResponse: CreateTopicsResponse => + cacheTopicCreationErrorsFromResponse(createTopicsResponse) + case _ => Review Comment: What sort of response could it be? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org