AnonHxy opened a new pull request, #15498:
URL: https://github.com/apache/pulsar/pull/15498
### Motivation
Use HierarchyTopicPolicies to update topic-level subscribeRate
### Modifications
Use `updateSubscribeRateLimiter()` to update topic-level subscribeRate,
instead of `initializeTopicSubscribeRateLimiterIfNeeded`. After this
Modification, broker-level, ns-level and topic-level subscribeRate updating
all use the same method `updateSubscribeRateLimiter()`
### Verifying this change
- [x] Make sure that the change passes the CI checks.
This change is already covered by existing tests, such as *(please describe
tests)*.
* org.apache.pulsar.broker.admin.TopicPoliciesTest#testDisableSubscribeRate
### Documentation
- [x] `no-need-doc`
(Please explain why)
--
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]