wangjialing218 commented on a change in pull request #14387:
URL: https://github.com/apache/pulsar/pull/14387#discussion_r810728537
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractTopic.java
##########
@@ -1118,4 +1118,9 @@ public void updateBrokerSubscriptionDispatchRate() {
topicPolicies.getSubscriptionDispatchRate().updateBrokerValue(
subscriptionDispatchRateInBroker(brokerService.pulsar().getConfiguration()));
}
+
+ public void updateBrokerPublishRate() {
+ topicPolicies.getPublishRate().updateBrokerValue(
+ publishRateInBroker(brokerService.pulsar().getConfiguration()));
Review comment:
When broker level topic publish rate is updated, all topic's publish
rate is updated.
Only those topic which topic level publish rate is null should be updated in
this case.
--
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]