You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/15 12:41:05 UTC

[GitHub] [pulsar] codelipenghui commented on a change in pull request #12158: Fix improper usage in refactoring ns-policy

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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org