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

NPE in ProcfsBasedProcessTree.destroy()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.21.0
    • tasktracker
    • None
    • Reviewed
    • Fixes an issue of NPE in ProcfsBasedProcessTree in a corner case.

    Description

      This causes the following exception in TaskMemoryManagerThread. I observed this while running TestTaskTrackerMemoryManager.

      2009-09-02 12:08:25,835 WARN  mapred.TaskMemoryManagerThread (TaskMemoryManagerThread.java:run(239)) - \
                  Uncaught exception in TaskMemoryManager while managing memory of attempt_20090902120812252_0001_m_000003_0 : \
      java.lang.NullPointerException
              at org.apache.hadoop.util.ProcfsBasedProcessTree.assertPidPgrpidForMatch(ProcfsBasedProcessTree.java:234)
              at org.apache.hadoop.util.ProcfsBasedProcessTree.assertAndDestroyProcessGroup(ProcfsBasedProcessTree.java:257)
              at org.apache.hadoop.util.ProcfsBasedProcessTree.destroy(ProcfsBasedProcessTree.java:286)
              at org.apache.hadoop.mapred.TaskMemoryManagerThread.run(TaskMemoryManagerThread.java:229)
      

      Attachments

        1. HADOOP-6232.patch
          1 kB
          Ravi Gummadi
        2. MR-962.patch
          4 kB
          Ravi Gummadi
        3. MR-962.v1.1.patch
          4 kB
          Ravi Gummadi
        4. MR-962.v1.patch
          4 kB
          Ravi Gummadi

        Activity

          People

            ravidotg Ravi Gummadi
            vinodkv Vinod Kumar Vavilapalli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: