conduktor.io ↗

KIP-464 — Defaults for AdminClient#createTopic

Accepted Kafka 2.4 Admin

KIP-464 makes `AdminClient.createTopics()` respect the broker-side defaults `num.partitions` and `default.replication.factor` when `NewTopic` is constructed with `-1` for those fields, matching the behavior of auto-creation. Before this change, callers had to explicitly specify partition count and replication factor, or duplicate the broker's default values client-side.

Protocol Impact

CreateTopics v4

Details

AuthorAlmog Gavra
StatusAccepted
Kafka Version2.4
JIRAKAFKA-8305
WikiView on Apache Wiki
Created2019-04-29
Last Modified2021-04-14
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.