Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Today, these two configurations can only be leveraged from auto.topic.create; this KIP proposes leveraging them from the AdminClient APIs as well.

Public Interfaces

We will add one new constructor to NewTopic that resolves all defaults and requires only the topic name:

Code Block
public NewTopic(String name); // uses default partitions and replication factor from broker config

We will make the NewTopicBuilder a first class API for constructing topics with any permutation of defaults and specific configurations. This moves the following API from the org.apache.kafka.connect.runtime package to the org.apache.kafka.clients.admin module as an api within NewTopic, leaving the old one in place but deprecating it for compatibility (the usage within kafka connect will be migrated to use the one in the new package):

...