Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1130

Remove unused ClientFinalizer in DFSClient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0
    • 0.16.0
    • None
    • None

    Description

      The ClientFinalizer shutdown hook is not used.

      This can lead to severe memory leaks if you use the DFSClient in a dynamic class loading context (such as in a webapp) as the DFSClient.ClientFinalizer class is retained in the memory by the shutdown hook. It retains also the current ClassLoader and thus all classes loaded by the ClassLoader. (Threads put in the shutdown hook are never garbage collected).

      Attachments

        1. HADOOP-1130.diff
          1 kB
          Philippe Gassmann
        2. 1130.patch
          4 kB
          Christopher Douglas

        Issue Links

          Activity

            People

              cdouglas Christopher Douglas
              phil@anyware-tech.com Philippe Gassmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: