Versions Compared

Key

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

...

  • NewTopic, the Java object passed into AdminClient, will have another constructor that accepts only topic name and number of partitions.
  • A create topic request that specifies the sentinel value of NO_REPLICATION_FACTOR (-1) alongside a valid (non-negative) number of partitions and no manual assignment will create the topic using default.replication.factor. Note that this sentinel value is already sent as part of the request, usually to indicate that manual assignments should be used if also paired with NO_PARTITIONS (-1).

Proposed Changes

The change is straightforward, AdminManager on the broker will modify its verification logic to check for the case described above where partitions are supplied, replication factor is NO_REPLICATION_FACTOR, and manual assignments are not provided. In this case, it will use the default value in the configuration (which defaults to a replication factor of 1).

...