[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14951913#comment-14951913
 ] 

Sijie Guo commented on BOOKKEEPER-872:
--------------------------------------

the patch looks good to me. +1.

> Resource leak with unclosed LedgerManager in 
> HierarchicalLedgerManagerFactory#format()
> --------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-872
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-872
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: bookkeeper-872-v1.txt
>
>
> {code}
>     public void format(AbstractConfiguration conf, ZooKeeper zk)
>             throws InterruptedException, KeeperException, IOException {
>         HierarchicalLedgerManager ledgerManager = (HierarchicalLedgerManager) 
> newLedgerManager();
> {code}
> ledgerManager is not closed upon exit from the method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to