You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by ss...@apache.org on 2015/05/22 20:03:35 UTC

tez git commit: TEZ-2471. NPE in LogicalIOProcessorRuntimeTask while printing thread info. (sseth)

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 <ss...@apache.org>
Authored: Fri May 22 11:03:11 2015 -0700
Committer: Siddharth Seth <ss...@apache.org>
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());
+      }
     }
   }