andrasbeni opened a new pull request, #16901:
URL: https://github.com/apache/pulsar/pull/16901
Fixes #15254
### Motivation
The number of topics in a namespace is limited by ZooKeeper when it is used
as the local store. This is because listing topics requires all topic names to
fit in ZK's buffer. By introducing an intermediate layer between the namespace
node and topics, a namespace can have more topics.
### Modifications
- Add new namespace policy `number_of_buckets` defaulting to 1 (i.e. no
buckets)
- Calculate topics' persistence name based on the number of buckets in the
namespace
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
*(example:)*
- Added integration tests for creating topics in a bucketed namespace and
producing to / consuming from it
### 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: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
### Documentation
Check the box below or label this PR directly.
Need to update docs?
- [X] `doc-required`
(Your PR needs to update docs and you will update later)
--
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]