nodece opened a new pull request, #22504:
URL: https://github.com/apache/pulsar/pull/22504

   ### Motivation
   
   Initializing a topic, if a replicator's cursor exists, the topic will create 
the replicator, and then load the namespace and topic policy, when the policies 
are loaded, we should apply that to the replicator.
   
   The namespace policies will not be applied to the replicator after the 
broker restart when topic policies are empty, which causes an excess of the 
total traffic.
   
   ### Modifications
   
   - Call 
`org.apache.pulsar.broker.service.persistent.PersistentTopic#onPoliciesUpdate` 
after the namespace policy is loaded
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
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]

Reply via email to