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 2014/03/14 23:43:50 UTC

git commit: TEZ-933. Change Vertex.getNumTasks to return the initially configured number of tasks if initialization has not completed. (sseth) depending on when it's called. (sseth)

Repository: incubator-tez
Updated Branches:
  refs/heads/master c75ce7066 -> 672b26aff


TEZ-933. Change Vertex.getNumTasks to return the initially configured
number of tasks if initialization has not completed. (sseth)
depending on when it's called. (sseth)


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

Branch: refs/heads/master
Commit: 672b26aff6b9ba092d6d853a8273d15f1782c574
Parents: c75ce70
Author: Siddharth Seth <ss...@apache.org>
Authored: Fri Mar 14 15:39:32 2014 -0700
Committer: Siddharth Seth <ss...@apache.org>
Committed: Fri Mar 14 15:39:32 2014 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/672b26af/tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java
----------------------------------------------------------------------
diff --git a/tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java b/tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java
index d3294ea..1010ab0 100644
--- a/tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java
+++ b/tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java
@@ -591,6 +591,10 @@ public class VertexImpl implements org.apache.tez.dag.app.dag.Vertex,
       setAdditionalOutputs(vertexPlan.getOutputsList());
     }
     
+    // Setup the initial parallelism early. This may be changed after
+    // initialization or on a setParallelism call.
+    this.numTasks = vertexPlan.getTaskConfig().getNumTasks();
+    
     this.dagVertexGroups = dagVertexGroups;
 
     logIdentifier =  this.getVertexId() + " [" + this.getName() + "]";