pulsar
pulsar copied to clipboard
[fix][broker] Fix the applying of namespace policies
Motivation
I'm using the rate limiter on the replicator, when an existing topic is initializing, and the replicator's cursor exists, the topic will create the replicator, and then load and apply the namespace and topic policies to the topic(which includes the replicator), but I found the rate limiter doesn't work.
The namespace policies will not be applied to the replicator after the broker restart.
When will this happen:
- The topic policies are disabled.
- The topic policies are enabled, and there are no policies.
Modifications
- Loading the compaction service and replicator after the namespace and topic policies are loaded
- When there are no topic policies, apply the namespace policies to the topic
- Add
resourceGroup,encryptionRequired, andallowAutoUpdateSchemato theHierarchyTopicPoliciesto unify the policies
Documentation
- [ ]
doc - [ ]
doc-required - [x]
doc-not-needed - [ ]
doc-complete
Check CI errors first
/pulsarbot rerun-failure-checks
@liudezhi2098 The CI has been passed.
Closed by https://github.com/apache/pulsar/pull/22890