codelipenghui commented on a change in pull request #12360:
URL: https://github.com/apache/pulsar/pull/12360#discussion_r728624946



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/DispatchRateLimiter.java
##########
@@ -161,15 +162,19 @@ private DispatchRate createDispatchRate() {
     public void updateDispatchRate() {
         Optional<DispatchRate> dispatchRate = 
getTopicPolicyDispatchRate(brokerService, topicName, type);
         if (!dispatchRate.isPresent()) {
-            dispatchRate = 
Optional.ofNullable(getPoliciesDispatchRate(brokerService));
+            
getPoliciesDispatchRateAsync(brokerService).thenAccept(dispatchRateOp -> {

Review comment:
       Yes, we should print an error log if failed to get the policy




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