Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5508

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical 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) {
      ...
      }
      
      1. JobInProgress.java
        126 kB
        viswanathan
      2. CleanupQueue.java
        6 kB
        viswanathan
      3. MAPREDUCE-5508.3.patch
        4 kB
        Xi Fang
      4. MAPREDUCE-5508.2.patch
        4 kB
        Xi Fang
      5. MAPREDUCE-5508.1.patch
        3 kB
        Xi Fang
      6. MAPREDUCE-5508.patch
        2 kB
        Xi Fang

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development