Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7C3D6200C3A for ; Fri, 3 Mar 2017 02:57:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7ADD8160B85; Fri, 3 Mar 2017 01:57:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C4651160B7A for ; Fri, 3 Mar 2017 02:57:20 +0100 (CET) Received: (qmail 60958 invoked by uid 500); 3 Mar 2017 01:57:11 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 59973 invoked by uid 99); 3 Mar 2017 01:57:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 01:57:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6F827DFF75; Fri, 3 Mar 2017 01:57:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jhung@apache.org To: common-commits@hadoop.apache.org Date: Fri, 03 Mar 2017 01:57:40 -0000 Message-Id: <017dbd19035f4fcf84d9f46c6b9145ca@git.apache.org> In-Reply-To: <3dd8546e16b7402a8ebeb8f53699bc34@git.apache.org> References: <3dd8546e16b7402a8ebeb8f53699bc34@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [32/38] hadoop git commit: MAPREDUCE-6852. Job#updateStatus() failed with NPE due to race condition. Contributed by Junping Du archived-at: Fri, 03 Mar 2017 01:57:21 -0000 MAPREDUCE-6852. Job#updateStatus() failed with NPE due to race condition. Contributed by Junping Du Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/747bafaf Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/747bafaf Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/747bafaf Branch: refs/heads/YARN-5734 Commit: 747bafaf969857b66233a8b4660590bdd712ed7d Parents: eeca8b0 Author: Jian He Authored: Thu Mar 2 10:58:56 2017 -0800 Committer: Jian He Committed: Thu Mar 2 10:58:56 2017 -0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/mapreduce/Job.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/747bafaf/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java ---------------------------------------------------------------------- diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java index 45c065d..84d90de 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java @@ -323,7 +323,7 @@ public class Job extends JobContextImpl implements JobContext { this.status = ugi.doAs(new PrivilegedExceptionAction() { @Override public JobStatus run() throws IOException, InterruptedException { - return cluster.getClient().getJobStatus(status.getJobID()); + return cluster.getClient().getJobStatus(getJobID()); } }); } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org