Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5508

JobTracker memory leak caused by unreleased FileSystem objects in JobInProgress#cleanupJob

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1-win, 1.2.1
    • Fix Version/s: 1-win, 1.3.0
    • Component/s: jobtracker
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      MAPREDUCE-5351 fixed a memory leak problem but introducing another filesystem object (see "tempDirFs") that is not properly released.

       JobInProgress#cleanupJob()
      
        void cleanupJob() {
      ...
                tempDirFs = jobTempDirPath.getFileSystem(conf);
                CleanupQueue.getInstance().addToQueue(
                    new PathDeletionContext(jobTempDirPath, conf, userUGI, jobId));
      ...
       if (tempDirFs != fs) {
            try {
              fs.close();
            } catch (IOException ie) {
      ...
      }
      

        Attachments

        1. MAPREDUCE-5508.patch
          2 kB
          Xi Fang
        2. MAPREDUCE-5508.1.patch
          3 kB
          Xi Fang
        3. MAPREDUCE-5508.2.patch
          4 kB
          Xi Fang
        4. MAPREDUCE-5508.3.patch
          4 kB
          Xi Fang
        5. CleanupQueue.java
          6 kB
          viswanathan
        6. JobInProgress.java
          126 kB
          viswanathan

          Issue Links

            Activity

              People

              • Assignee:
                xifang Xi Fang
                Reporter:
                xifang Xi Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: