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

TestTaskLauncher and TestTaskTrackerLocalization fail with NPE in trunk.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • tasktracker, test
    • None

    Description

      TestTaskLauncher and TestTaskTrackerLocalization fail in trunk after the commit of MAPREDUCE-1881 with NPE:

      java.lang.NullPointerException
              at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.kill(TaskTracker.java:2978)
              at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.jobHasFinished(TaskTracker.java:2941)
              at org.apache.hadoop.mapred.TaskTracker.purgeJob(TaskTracker.java:1919)
              at org.apache.hadoop.mapred.TestTaskTrackerLocalization.verifyUserLogsRemoval(TestTaskTrackerLocalization.java:816)
              at org.apache.hadoop.mapred.TestTaskTrackerLocalization.testJobFilesRemoval(TestTaskTrackerLocalization.java:897)
      
      java.lang.NullPointerException
              at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.kill(TaskTracker.java:2978)
              at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.jobHasFinished(TaskTracker.java:2941)
              at org.apache.hadoop.mapred.TaskTracker.purgeTask(TaskTracker.java:1981)
              at org.apache.hadoop.mapred.TaskTracker.processKillTaskAction(TaskTracker.java:420)
              at org.apache.hadoop.mapred.TestTaskLauncher.testExternalKillForLaunchTask(TestTaskLauncher.java:95)
      

      NPE happens because taskTracker.myInstrumentation is not initialized.

      Attachments

        1. 2031.patch
          2 kB
          Ravi Gummadi

        Activity

          People

            ravidotg Ravi Gummadi
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: