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

TaskRunner can get NPE in getting ugi from TaskTracker

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: tasktracker
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Fixed a bug that causes TaskRunner to get NPE in getting ugi from TaskTracker and subsequently crashes it resulting in a failing task after task-timeout period.

      Description

      The following code in TaskRunner can get NPE in the scenario described below.

            UserGroupInformation ugi = 
              tracker.getRunningJob(t.getJobID()).getUGI();
      

      The scenario:
      Tracker got a LaunchTaskAction; Task is localized and TaskRunner is started.
      Then Tracker got a KillJobAction; This would issue a kill for the task. But, kill will be a no-op because the task did not actually start; The job is removed from runningJobs.
      Then if TaskRunner calls tracker.getRunningJob(t.getJobID()), it will be null.

      Instead of TaskRunner doing a back call to tasktracker to get the ugi, tracker.getRunningJob(t.getJobID()).getUGI(), ugi should be passed a parameter in the constructor of TaskRunner.

        Attachments

        1. MAPREDUCE-1707-20100429.txt
          2 kB
          Vinod Kumar Vavilapalli
        2. MAPREDUCE-1707-20100430.txt
          3 kB
          Vinod Kumar Vavilapalli
        3. MAPREDUCE-1707-20100504-ydist.txt
          3 kB
          Vinod Kumar Vavilapalli

          Issue Links

            Activity

              People

              • Assignee:
                vinodkv Vinod Kumar Vavilapalli
                Reporter:
                amareshwari Amareshwari Sriramadasu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: