wangjialing218 commented on a change in pull request #11325:
URL: https://github.com/apache/pulsar/pull/11325#discussion_r725740450
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/DispatchRateLimiter.java
##########
@@ -317,6 +340,9 @@ public static DispatchRateImpl
getPoliciesDispatchRate(final String cluster,
* @return
*/
public DispatchRate getPoliciesDispatchRate(BrokerService brokerService) {
+ if (type == Type.BROKER) {
Review comment:
For broker dispatchRateLimiter `topicName` is null, add this judgment to
avoid call `getPolicies` with null `topicName`.
--
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]