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/06/25 08:09:19 UTC

[GitHub] [bookkeeper] horizonzy opened a new issue, #3360: AutoRecovery memory leak problem.

horizonzy opened a new issue, #3360:
URL: https://github.com/apache/bookkeeper/issues/3360

   **BUG REPORT**
   
   #### In Auditor, we will checkAllLedger in the scheduled task `scheduleCheckAllLedgersTask`.
   https://github.com/apache/bookkeeper/blob/677ccec3eb84f5be1b3556537871e14eb5e8359c/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/Auditor.java#L1333
   
   #### In ReplicationWorker, we will check ledgerFragment to replicate.
   https://github.com/apache/bookkeeper/blob/677ccec3eb84f5be1b3556537871e14eb5e8359c/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java#L369
   
   #### Both will invoke `openLedgerNoRecovery`. It will register self to AbstractZkLedgerManager.
   https://github.com/apache/bookkeeper/blob/677ccec3eb84f5be1b3556537871e14eb5e8359c/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/ReadOnlyLedgerHandle.java#L105-L107
   
   
   #### In ReadOnlyLedgerHandler close, it will unregistrer self to AbstractZkLedgerManager, but  it only remove listener in AbstractZkLedgerManager#listeners, not remove watcher in ZKWatchManager. So ZKWatchManager dataWatcher will be more and more.
   https://github.com/apache/bookkeeper/blob/677ccec3eb84f5be1b3556537871e14eb5e8359c/bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/AbstractZkLedgerManager.java#L412-L426
   
   
   
   
   #### There is a heap dump we found in product.
   <img width="962" alt="image" src="https://user-images.githubusercontent.com/22524871/175764518-5449bd49-7740-4c23-b1c9-d754057e7bcd.png">
   
   
   
   


-- 
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.apache.org

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


[GitHub] [bookkeeper] horizonzy commented on issue #3360: AutoRecovery memory leak problem.

Posted by GitBox <gi...@apache.org>.
horizonzy commented on issue #3360:
URL: https://github.com/apache/bookkeeper/issues/3360#issuecomment-1397254682

   Close via#3361


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

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


[GitHub] [bookkeeper] horizonzy closed issue #3360: AutoRecovery memory leak problem.

Posted by GitBox <gi...@apache.org>.
horizonzy closed issue #3360: AutoRecovery memory leak problem.
URL: https://github.com/apache/bookkeeper/issues/3360


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

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