You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2022/07/27 01:15:15 UTC

[GitHub] [bookkeeper] hangc0276 commented on a diff in pull request #2942: Fix the infinite waiting for shutdown due to throttler limit

hangc0276 commented on code in PR #2942:
URL: https://github.com/apache/bookkeeper/pull/2942#discussion_r930531460


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/AbstractLogCompactor.java:
##########
@@ -66,6 +70,8 @@ public void cleanUpAndRecover() {}
     public static class Throttler {
         private final RateLimiter rateLimiter;
         private final boolean isThrottleByBytes;
+        private final AtomicBoolean cancelled = new AtomicBoolean(false);
+        private final AtomicBoolean throttlerInterrupted = new AtomicBoolean(false);

Review Comment:
   This one just used for test?



-- 
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: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org