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:35 GMT
Repository: tez
Updated Branches:
  refs/heads/branch-0.8 eaa51be17 -> 5fdc8228c


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/5fdc8228
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/5fdc8228
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/5fdc8228

Branch: refs/heads/branch-0.8
Commit: 5fdc8228ce439eb96982c3efc23b8faafa3f9921
Parents: eaa51be
Author: Rajesh Balamohan <rbalamohan@apache.org>
Authored: Wed May 11 13:35:03 2016 +0530
Committer: Rajesh Balamohan <rbalamohan@apache.org>
Committed: Wed May 11 13:35:03 2016 +0530

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


http://git-wip-us.apache.org/repos/asf/tez/blob/5fdc8228/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index dbd1f2c..cdc058b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -6,6 +6,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/5fdc8228/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