showuon opened a new pull request #9149: URL: https://github.com/apache/kafka/pull/9149
Improve the logging in `maybeCreateTopic` to let user know if `!topicCreation.isTopicCreationRequired(topic)`, we won't create this topic because the topic creation setting is disabled or the topic name is already created. Also, we should let user know that if the topic doesn't exist, we'll rely on the `auto.create.topics.enable` setting in broker side to see if the topic can be auto created or not. Otherwise, if the `auto.create.topics.enable` is disabled, the producer.send will get only `TimeoutException` and no other valuable clue for users. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org