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 2019/02/06 23:56:32 UTC

[GitHub] athanatos commented on a change in pull request #1937: [bk-gc] Fix GC thread gets blocked

athanatos commented on a change in pull request #1937: [bk-gc] Fix GC thread gets blocked
URL: https://github.com/apache/bookkeeper/pull/1937#discussion_r254501135
 
 

 ##########
 File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/FlatLedgerManager.java
 ##########
 @@ -103,7 +103,8 @@ private synchronized void preload() throws IOException {
 
                 try {
                     zkActiveLedgers = ledgerListToSet(
-                            ZkUtils.getChildrenInSingleNode(zk, ledgerRootPath), ledgerRootPath);
+                            ZkUtils.getChildrenInSingleNode(zk, ledgerRootPath, ZkUtils.OP_TIME_OUT_SEC),
 
 Review comment:
   What I mean is, it should probably be passed in from the gc thread.  The gc caller should probably get it's value from a config.  Doing it here doesn't allow different users with different tolerances to provide different bounds.  Also, passing in 0 should mean no limit.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services