Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-863

Potential resource leak with unclosed LedgerManager in BookieShell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.4.0
    • None
    • None

    Description

      There're more than one occurrence.
      Here is an example in ListLedgersCmd#runCmd():

                      LedgerManagerFactory mFactory = LedgerManagerFactory.newLedgerManagerFactory(bkConf, zk);
                      LedgerManager m = mFactory.newLedgerManager();
      

      m is not closed upon leaving the method.

      Attachments

        1. bookkeeper-863-v2.patch
          3 kB
          Ted Yu
        2. bookkeeper-863-v2.patch
          3 kB
          Ted Yu
        3. bookkeeper-863.patch
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: