tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbalamo...@apache.org
Subject tez git commit: TEZ-3251. Allow ability to add custom counters to TaskRunner2Callable (Contributed by Prasanth Jayachandran)
Date Wed, 11 May 2016 08:08:16 GMT
Repository: tez
Updated Branches:
  refs/heads/master 69b8e0644 -> 5d509d8c2


TEZ-3251. Allow ability to add custom counters to TaskRunner2Callable (Contributed by Prasanth
Jayachandran)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/5d509d8c
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/5d509d8c
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/5d509d8c

Branch: refs/heads/master
Commit: 5d509d8c26f3796703ce684c614159e223af9ecf
Parents: 69b8e06
Author: Rajesh Balamohan <rbalamohan@apache.org>
Authored: Wed May 11 13:33:58 2016 +0530
Committer: Rajesh Balamohan <rbalamohan@apache.org>
Committed: Wed May 11 13:33:58 2016 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                      | 3 +++
 .../java/org/apache/tez/runtime/task/TaskRunner2Callable.java    | 4 ++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/5d509d8c/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index ae48db1..dc9f4fe 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@ INCOMPATIBLE CHANGES
 
 ALL CHANGES:
 
+  TEZ-3251. Allow ability to add custom counters to TaskRunner2Callable.
   TEZ-3250. TezTaskRunner2 should accept ExecutorService.
   TEZ-3245. Data race between addKnowInput and clearAndGetOnepartition of InputHost.
   TEZ-3193. Deadlock in AM during task commit request.
@@ -32,6 +33,8 @@ Release 0.8.4: Unreleased
 INCOMPATIBLE CHANGES
 
 ALL CHANGES:
+
+  TEZ-3251. Allow ability to add custom counters to TaskRunner2Callable.
   TEZ-3250. TezTaskRunner2 should accept ExecutorService.
   TEZ-3193. Deadlock in AM during task commit request.
   TEZ-3203. DAG hangs when one of the upstream vertices has zero tasks

http://git-wip-us.apache.org/repos/asf/tez/blob/5d509d8c/tez-runtime-internals/src/main/java/org/apache/tez/runtime/task/TaskRunner2Callable.java
----------------------------------------------------------------------
diff --git a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/task/TaskRunner2Callable.java
b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/task/TaskRunner2Callable.java
index 8e634fa..b39af69 100644
--- a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/task/TaskRunner2Callable.java
+++ b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/task/TaskRunner2Callable.java
@@ -21,6 +21,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
 import org.apache.hadoop.security.UserGroupInformation;
 import org.apache.tez.common.CallableWithNdc;
 import org.apache.tez.common.TezUtilsInternal;
+import org.apache.tez.common.counters.TezCounters;
 import org.apache.tez.runtime.LogicalIOProcessorRuntimeTask;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -141,4 +142,7 @@ public class TaskRunner2Callable extends CallableWithNdc<TaskRunner2Callable.Tas
     }
   }
 
+  public TezCounters addAndGetTezCounter(final String name) {
+    return task.addAndGetTezCounter(name);
+  }
 }


Mime
View raw message