You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jonah Hooper (Jira)" <ji...@apache.org> on 2026/04/27 21:14:00 UTC
[jira] [Created] (KAFKA-20537) Return topic-id in CreateTopicsResponse when topic already exists
Jonah Hooper created KAFKA-20537:
------------------------------------
Summary: Return topic-id in CreateTopicsResponse when topic already exists
Key: KAFKA-20537
URL: https://issues.apache.org/jira/browse/KAFKA-20537
Project: Kafka
Issue Type: Improvement
Reporter: Jonah Hooper
If a topic already exists in the CREATE_TOPICS request then we return [TOPIC_ALREADY_EXISTS|https://github.com/apache/kafka/blob/3c9b210be3436c0b2086f779ce56db2377ee338e/clients/src/main/java/org/apache/kafka/common/protocol/Errors.java#L256] error code. Under this error case the topicId will not be set. Since the [topicId|https://github.com/apache/kafka/blob/3c9b210be3436c0b2086f779ce56db2377ee338e/clients/src/main/resources/common/message/CreateTopicsResponse.json#L46] does exist if the topic was already created, we should return it as part of the RPC.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)