This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 4117200  the compare should be >= instead of > (#2782)
4117200 is described below

commit 411720040ebe71fbc4cc4f14ab95c6844d07785c
Author: ZhangJian He <[email protected]>
AuthorDate: Sat Oct 23 08:18:14 2021 +0800

    the compare should be >= instead of > (#2782)
---
 .../main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java
index cafbf53..05649b4 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java
@@ -474,7 +474,7 @@ public class GarbageCollectorThread extends SafeRunnable {
                 end = System.currentTimeMillis();
                 timeDiff = end - start;
             }
-            if (meta.getUsage() >= threshold || (maxTimeMillis > 0 && timeDiff 
> maxTimeMillis) || !running) {
+            if (meta.getUsage() >= threshold || (maxTimeMillis > 0 && timeDiff 
>= maxTimeMillis) || !running) {
                 // We allow the usage limit calculation to continue so that we 
get a accurate
                 // report of where the usage was prior to running compaction.
                 continue;

Reply via email to