bharanic-dev commented on a change in pull request #11916: URL: https://github.com/apache/pulsar/pull/11916#discussion_r702070778
########## File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/resourcegroup/ResourceGroup.java ########## @@ -341,7 +341,11 @@ protected BytesAndMessagesCount updateLocalQuota(ResourceGroupMonitoringClass mo oldBMCount = monEntity.quotaForNextPeriod; try { monEntity.quotaForNextPeriod = newQuota; - this.resourceGroupPublishLimiter.update(newQuota); + if (monClass == ResourceGroupMonitoringClass.Publish) { + this.resourceGroupPublishLimiter.update(newQuota); + } else { Review comment: when I made this change in my local sandbox, I did not have the changes you committed in commit ID '60a569823293'. Now that the check is added in commit ID '60a569823293', this change is no longer required. I will update the code. -- 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-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org