eolivelli commented on a change in pull request #11671: URL: https://github.com/apache/pulsar/pull/11671#discussion_r690940233
########## File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BacklogQuotaManager.java ########## @@ -53,9 +53,10 @@ public BacklogQuotaManager(PulsarService pulsar) { this.isTopicLevelPoliciesEnable = pulsar.getConfiguration().isTopicLevelPoliciesEnabled(); + double backlogQuotaGB = pulsar.getConfiguration().getBacklogQuotaDefaultLimitGB(); this.defaultQuota = BacklogQuotaImpl.builder() - .limitSize(pulsar.getConfiguration().getBacklogQuotaDefaultLimitGB() - * BacklogQuotaImpl.BYTES_IN_GIGABYTE) + .limitSize(backlogQuotaGB > 0 ? (long) backlogQuotaGB * BacklogQuotaImpl.BYTES_IN_GIGABYTE Review comment: good catch ! can you please send a PR to fix it ASAP ? -- 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