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 2020/08/21 14:12:04 UTC

[GitHub] [pulsar] codelipenghui commented on a change in pull request #7839: [ISSUE 7758]Support set Max Producer on topic level

codelipenghui commented on a change in pull request #7839:
URL: https://github.com/apache/pulsar/pull/7839#discussion_r474723733



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -2352,6 +2352,50 @@ protected void internalGetPersistence(AsyncResponse asyncResponse){
         return pulsar().getTopicPoliciesService().updateTopicPoliciesAsync(topicName, topicPolicies.get());
     }
 
+    protected void internalGetMaxProducers(AsyncResponse asyncResponse){
+        validateAdminAccessForTenant(namespaceName.getTenant());

Review comment:
       Call `checkTopicLevelPolicyEnable()` before use topic policy API, please check all.




----------------------------------------------------------------
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.

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