equanz opened a new pull request #6794:
URL: https://github.com/apache/pulsar/pull/6794
Fixes #6793
### Motivation
Now broker, can't set max number of partitions per partitioned topic. So we
can't prevent to create partitioned topic by many partitions from server side.
In this PR, introduce limit of max partitions to broker and to be able to
control it.
### Modifications
Add `maxNumPartitionsPerPartitionedTopic` config to broker and compare with
numPartitions at create or update partitioned topic.
If the config is set to `0`(is default), then disable the check.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
- Unit tests for maxNumPartitionsPerPartitionedTopic config
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (no)
- The default values of configurations: (yes)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
### Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? (docs)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]