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

   1、This issue is triggered by namespace policies update. When namespace 
policies updated, `handlePoliciesUpdates` will be called next to update all the 
topics policies under this namespace. Too many topics would cause 
metadata-store waiting.
   
   
https://github.com/apache/pulsar/blob/318432ed1f16e60a088f3dca1b14891d582726a9/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java#L2034-L2062
   
![image](https://user-images.githubusercontent.com/9278488/177733636-bfd343b1-2e89-4a02-89f2-8fa61c8f9def.png)
   
   ### Modifications
   
   Use thenAcceptAsync instead, execute `update topic policies` in a separated 
executor.
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [x] `doc-not-needed` 


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