Return-Path: X-Original-To: apmail-tez-commits-archive@minotaur.apache.org Delivered-To: apmail-tez-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A90617C90 for ; Fri, 22 May 2015 18:03:36 +0000 (UTC) Received: (qmail 57972 invoked by uid 500); 22 May 2015 18:03:36 -0000 Delivered-To: apmail-tez-commits-archive@tez.apache.org Received: (qmail 57929 invoked by uid 500); 22 May 2015 18:03:35 -0000 Mailing-List: contact commits-help@tez.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.apache.org Delivered-To: mailing list commits@tez.apache.org Received: (qmail 57920 invoked by uid 99); 22 May 2015 18:03:35 -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, 22 May 2015 18:03:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D0492DFBD9; Fri, 22 May 2015 18:03:35 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sseth@apache.org To: commits@tez.apache.org Message-Id: <879c1e23f93549a782311c38fba201a2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: tez git commit: TEZ-2471. NPE in LogicalIOProcessorRuntimeTask while printing thread info. (sseth) Date: Fri, 22 May 2015 18:03:35 +0000 (UTC) Repository: tez Updated Branches: refs/heads/TEZ-2003 f3914f344 -> ecbfc8d92 TEZ-2471. NPE in LogicalIOProcessorRuntimeTask while printing thread info. (sseth) Project: http://git-wip-us.apache.org/repos/asf/tez/repo Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/ecbfc8d9 Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/ecbfc8d9 Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/ecbfc8d9 Branch: refs/heads/TEZ-2003 Commit: ecbfc8d925fa3d5e62959c7ce4e7ffc8f7eeb627 Parents: f3914f3 Author: Siddharth Seth Authored: Fri May 22 11:03:11 2015 -0700 Committer: Siddharth Seth Committed: Fri May 22 11:03:11 2015 -0700 ---------------------------------------------------------------------- TEZ-2003-CHANGES.txt | 1 + .../org/apache/tez/runtime/LogicalIOProcessorRuntimeTask.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tez/blob/ecbfc8d9/TEZ-2003-CHANGES.txt ---------------------------------------------------------------------- diff --git a/TEZ-2003-CHANGES.txt b/TEZ-2003-CHANGES.txt index ca3383c..d651960 100644 --- a/TEZ-2003-CHANGES.txt +++ b/TEZ-2003-CHANGES.txt @@ -27,5 +27,6 @@ ALL CHANGES: TEZ-2434. Allow tasks to be killed in the Runtime. TEZ-2443. TaskRunner2 should call abort, NPEs while cleaning up tasks. TEZ-2465. Retrun the status of a kill request in TaskRunner2. + TEZ-2471. NPE in LogicalIOProcessorRuntimeTask while printing thread info. INCOMPATIBLE CHANGES: http://git-wip-us.apache.org/repos/asf/tez/blob/ecbfc8d9/tez-runtime-internals/src/main/java/org/apache/tez/runtime/LogicalIOProcessorRuntimeTask.java ---------------------------------------------------------------------- diff --git a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/LogicalIOProcessorRuntimeTask.java b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/LogicalIOProcessorRuntimeTask.java index f32da76..9ecb066 100644 --- a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/LogicalIOProcessorRuntimeTask.java +++ b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/LogicalIOProcessorRuntimeTask.java @@ -922,7 +922,10 @@ public class LogicalIOProcessorRuntimeTask extends RuntimeTask { long[] threadIds = threadMXBean.getAllThreadIds(); for (Long id : threadIds) { ThreadInfo threadInfo = threadMXBean.getThreadInfo(id); - LOG.info("ThreadId : " + id + ", name=" + threadInfo.getThreadName()); + // The thread could have been shutdown before we read info about it. + if (threadInfo != null) { + LOG.debug("ThreadId : " + id + ", name=" + threadInfo.getThreadName()); + } } }