lh0156 opened a new pull request, #22945: URL: https://github.com/apache/kafka/pull/22945
## Summary Return the existing topic ID in the `CreateTopicsResponse` when a requested topic already exists. ## Motivation The controller currently returns `TOPIC_ALREADY_EXISTS` with the default zero UUID. The topic ID is already available in the controller metadata image, so omitting it forces clients that need the ID to issue a separate metadata request. ## Validation - `./gradlew :metadata:test --tests org.apache.kafka.controller.ReplicationControlManagerTest.testCreateTopics --no-build-cache --console=plain` - `./gradlew :metadata:test --no-build-cache --console=plain` - `./gradlew :core:test --tests kafka.server.ControllerApisTest --no-build-cache --console=plain` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
