You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "lh0156 (via GitHub)" <gi...@apache.org> on 2026/08/02 11:43:55 UTC
Re: [PR] KAFKA-20537: Return topic ID for existing topics [kafka]
lh0156 commented on PR #22945:
URL: https://github.com/apache/kafka/pull/22945#issuecomment-5157608877
Implemented the AdminClient follow-up in 101e8f0be5.
CreateTopicsResult.topicId(topic) now completes with the existing topic ID when the controller returns TOPIC_ALREADY_EXISTS, while values() and all() retain their existing TopicExistsException behavior. Successful topic creation and other error paths continue to complete the topic-ID future consistently.
Added a focused KafkaAdminClientTest covering both behaviors. Verification after rebasing onto the latest trunk:
- :clients:test --tests org.apache.kafka.clients.admin.KafkaAdminClientTest (289 tests passed)
- :metadata:test --tests org.apache.kafka.controller.ReplicationControlManagerTest (75 tests passed)
- Checkstyle and SpotBugs completed successfully for the affected modules.
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org