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 2021/04/01 02:41:31 UTC

[GitHub] [pulsar] codelipenghui commented on a change in pull request #10093: [Broker] Add time based backlog quota

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



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
##########
@@ -2276,6 +2277,57 @@ public boolean isBacklogExceeded() {
         return (storageSize >= backlogQuotaLimitInBytes);
     }
 
+    /**
+     * @return determine if backlog quota enforcement needs to be done for topic based on time limit
+     */
+    public boolean isTimeBacklogExceeded() {

Review comment:
       @MarvinCai LGTM!




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