RaidenE1 commented on code in PR #20325: URL: https://github.com/apache/kafka/pull/20325#discussion_r2271200963
########## core/src/main/scala/kafka/server/AutoTopicCreationManager.scala: ########## @@ -135,10 +190,17 @@ class DefaultAutoTopicCreationManager( clearInflightRequests(creatableTopics) if (response.authenticationException() != null) { warn(s"Auto topic creation failed for ${creatableTopics.keys} with authentication exception") + cacheTopicCreationErrors(creatableTopics.keys.toSet, "Authentication failed") } else if (response.versionMismatch() != null) { warn(s"Auto topic creation failed for ${creatableTopics.keys} with invalid version exception") + cacheTopicCreationErrors(creatableTopics.keys.toSet, "Version mismatch") } else { - debug(s"Auto topic creation completed for ${creatableTopics.keys} with response ${response.responseBody}.") + response.responseBody() match { + case createTopicsResponse: CreateTopicsResponse => + cacheTopicCreationErrorsFromResponse(createTopicsResponse) Review Comment: In that method I check the error code, only cache if the code is not 0. I think we can definitely moved it out -- 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