You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Neeleshkumar Mannur (Jira)" <ji...@apache.org> on 2026/04/28 05:14:00 UTC
[jira] [Commented] (KAFKA-20537) Return topic-id in CreateTopicsResponse when topic already exists
[ https://issues.apache.org/jira/browse/KAFKA-20537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18076727#comment-18076727 ]
Neeleshkumar Mannur commented on KAFKA-20537:
---------------------------------------------
I just joined the community. Can I please work on this issue?
> 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
> Priority: Minor
>
> 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)