merlimat closed pull request #1368: Allow to set BacklogQuota when 
RetentionSizeInMB is set to -1
URL: https://github.com/apache/incubator-pulsar/pull/1368
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
 
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
index 5ecca2409..5f5b75861 100644
--- 
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
+++ 
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
@@ -1074,7 +1074,7 @@ protected RetentionPolicies internalGetRetention() {
 
     private boolean checkQuotas(Policies policies, RetentionPolicies 
retention) {
         Map<BacklogQuota.BacklogQuotaType, BacklogQuota> backlog_quota_map = 
policies.backlog_quota_map;
-        if (backlog_quota_map.isEmpty() || retention.getRetentionSizeInMB() == 
0) {
+        if (backlog_quota_map.isEmpty() || retention.getRetentionSizeInMB() == 
0 || retention.getRetentionSizeInMB() == -1) {
             return true;
         }
         BacklogQuota quota = 
backlog_quota_map.get(BacklogQuotaType.destination_storage);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to