Skip to content

KAFKA-20097: Populate topicId for existing topics in CreateTopics response#21399

Open
Shally-Katariya wants to merge 2 commits intoapache:trunkfrom
Shally-Katariya:KAFKA-20097-create-topic-returns-info
Open

KAFKA-20097: Populate topicId for existing topics in CreateTopics response#21399
Shally-Katariya wants to merge 2 commits intoapache:trunkfrom
Shally-Katariya:KAFKA-20097-create-topic-returns-info

Conversation

@Shally-Katariya
Copy link

This PR implements KAFKA-20097 for KRaft mode.

When CreateTopics is invoked for a topic that already exists, the response
now includes the existing topicId instead of ZERO_UUID.

Changes:

  • Populate topicId for TOPIC_ALREADY_EXISTS in ReplicationControlManager
  • No functional changes in ControllerApis request validation
  • Updated ReplicationControlManagerTest to reflect new behavior

All relevant metadata and core tests pass.

@github-actions github-actions bot added triage PRs from the community core Kafka Broker kraft labels Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker kraft triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant