If passing -1 for NumPartitions or ReplicationFactor when creating topics, the creation will use the cluster-default values for these values. This change allows for defaulting to using cluster values, and over-riding them if required. This reduces a lot of boilerplate code when setting up a cluster in code.
How Has This Been Tested?
Added integration tests to test this against a Kafka instance.
Checklist
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have added tests to cover my changes
[x] I have made corresponding changes to the documentation
Disclaimer
By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement
Description
If passing
-1
forNumPartitions
orReplicationFactor
when creating topics, the creation will use the cluster-default values for these values. This change allows for defaulting to using cluster values, and over-riding them if required. This reduces a lot of boilerplate code when setting up a cluster in code.How Has This Been Tested?
Added integration tests to test this against a Kafka instance.
Checklist
Disclaimer
By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement