brandboat opened a new pull request, #21550:
URL: https://github.com/apache/kafka/pull/21550
Currently, 'num.partitions' and 'default.replication.factor' are applied
inconsistently. Topic auto-creation relies on Broker configs, while
Streams and AdminClient rely on Controller configs. This leads to
confusing behavior where a Broker and Controller might
have diverging defaults.
This commit implements the 4.x transition phase:
- Updated DefaultAutoTopicCreationManager to check if these configs are
explicitly set in 'broker.properties'.
- If NOT explicitly set, the Broker now sends 'NO_NUM_PARTITIONS' and
'NO_REPLICATION_FACTOR' (-1) in the CreateTopicsRequest, allowing
the Controller's configuration to take precedence.
- Added deprecation warnings in KafkaConfig when these properties are
defined in a Broker role, notifying users to migrate them to the
Controller role before 5.0.
- Updated documentation to clarify the precedence logic between
Broker and Controller nodes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]