Skip to content

feat(protocol): support CreateTopicRequest V4#3238

Merged
dnwe merged 1 commit intomainfrom
dnwe/create-topics-request-v4
Aug 6, 2025
Merged

feat(protocol): support CreateTopicRequest V4#3238
dnwe merged 1 commit intomainfrom
dnwe/create-topics-request-v4

Conversation

@dnwe
Copy link
Copy Markdown
Collaborator

@dnwe dnwe commented Aug 5, 2025

Add support for using CreateTopicRequest V4 against Kafka 2.4 and newer clusters. Protocol-wise this is identical to the existing V3, but the version indicates that the server should accept -1 as the partition and replicate-factor values to indicate "use the server side defaults" (KIP-464).

Contributes-to: #3233

Add support for using CreateTopicRequest V4 against Kafka 2.4 and newer
clusters. Protocol-wise this is identical to the existing V3, but the
version indicates that the server should accept `-1` as the partition
and replicate-factor values to indicate "use the server side defaults"
(KIP-464).

Contributes-to: #3233

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe force-pushed the dnwe/create-topics-request-v4 branch from 6ec5bfb to 51a5b57 Compare August 5, 2025 21:05
@dnwe dnwe added the feat label Aug 5, 2025
@dnwe dnwe merged commit 1c971ae into main Aug 6, 2025
17 checks passed
@dnwe dnwe deleted the dnwe/create-topics-request-v4 branch August 6, 2025 12:12
version KafkaVersion,
topicDetails map[string]*TopicDetail,
timeout time.Duration,
validateOnly bool,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😬 this is a breaking change.

Fortunately, it seems no one is actually using this exported function though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants