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

Prevent resource leak in various classes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.7, 3.5.1, 3.6.0
    • Component/s: None
    • Labels:
      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. 2064-v1.txt
          6 kB
          Ted Yu
        2. 2064-v2.txt
          5 kB
          Ted Yu
        3. ZOOKEEPER-2064.patch
          5 kB
          Flavio Junqueira

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: