Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2064

Prevent resource leak in various classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 3.4.7, 3.5.1, 3.6.0
    • None
    • None

    Description

      In various classes, there is potential resource leak.
      e.g. LogIterator / RandomAccessFileReader is not closed upon return from the method.

      Corresponding close() should be called to prevent resource leak.

      Attachments

        1. ZOOKEEPER-2064.patch
          5 kB
          Flavio Paiva Junqueira
        2. 2064-v2.txt
          5 kB
          Ted Yu
        3. 2064-v1.txt
          6 kB
          Ted Yu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: