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

Potential resource leak with unclosed LedgerManager in BookieShell

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0
    • Component/s: None
    • Labels:
      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.patch
          2 kB
          Ted Yu
        2. bookkeeper-863-v2.patch
          3 kB
          Ted Yu
        3. bookkeeper-863-v2.patch
          3 kB
          Ted Yu

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: