Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 49138 invoked from network); 15 Apr 2010 08:59:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Apr 2010 08:59:18 -0000 Received: (qmail 48162 invoked by uid 500); 15 Apr 2010 08:59:18 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 48015 invoked by uid 500); 15 Apr 2010 08:59:15 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 47909 invoked by uid 99); 15 Apr 2010 08:59:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 08:59:15 +0000 X-ASF-Spam-Status: No, hits=-1292.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 08:59:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3F8wspR018137 for ; Thu, 15 Apr 2010 04:58:54 -0400 (EDT) Message-ID: <16681122.136431271321933995.JavaMail.jira@thor> Date: Thu, 15 Apr 2010 04:58:53 -0400 (EDT) From: "Amareshwari Sriramadasu (JIRA)" To: mapreduce-dev@hadoop.apache.org Subject: [jira] Created: (MAPREDUCE-1707) TaskRunner can get NPE in getting ugi from TaskTracker MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 TaskRunner can get NPE in getting ugi from TaskTracker ------------------------------------------------------ Key: MAPREDUCE-1707 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1707 Project: Hadoop Map/Reduce Issue Type: Bug Components: tasktracker Affects Versions: 0.22.0 Reporter: Amareshwari Sriramadasu Fix For: 0.22.0 The following code in TaskRunner can get NPE in the scenario described below. {code} UserGroupInformation ugi = tracker.getRunningJob(t.getJobID()).getUGI(); {code} 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira