Skip to content

Conversation

@lp247
Copy link
Contributor

@lp247 lp247 commented Oct 31, 2025

Requests to create topics will fail if you supply assignments and partitions/replicas together. If you don't supply a value for partitions/replicas at all, default values of 1 will be used which also leads to topic creation failures. Here, the default values for the two settings are changed to -1 so that topic creations do not fail due to conflicting settings. Furthermore, this has the benefit of using the default values set inside the Kafka cluster.

Related:

Requests to create topics will fail if you supply assignments and
partitions/replicas together. If you don't supply a value for
partitions/replicas at all, default values of 1 will be used which also
leads to topic creation failures. Here, the default values for the two
settings are changed to -1 so that topic creations do not fail due to
conflicting settings. Furthermore, this has the benefit of using the
default values set inside the Kafka cluster.

Related:
- tulios/kafkajs#1305
@lp247 lp247 force-pushed the partitions_replicas_default branch from ed1b731 to aa6d273 Compare November 3, 2025 12:34
@ShogunPanda
Copy link
Contributor

LGTM but CI is failing. Please double check.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants