codelipenghui commented on a change in pull request #12158:
URL: https://github.com/apache/pulsar/pull/12158#discussion_r826926441
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractTopic.java
##########
@@ -211,7 +211,7 @@ protected boolean isConsumersExceededOnTopic() {
Policies policies;
try {
// Use getDataIfPresent from zk cache to make the call
non-blocking and prevent deadlocks
- policies =
brokerService.pulsar().getPulsarResources().getNamespaceResources().getPolicies(
+ policies =
brokerService.pulsar().getPulsarResources().getNamespaceResources().getPoliciesIfCached(
Review comment:
I think this one has been improved by hierarchy topic 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]