tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject 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)
Date Fri, 14 Mar 2014 22:43:50 GMT
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 <sseth@apache.org>
Authored: Fri Mar 14 15:39:32 2014 -0700
Committer: Siddharth Seth <sseth@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() + "]";


Mime
View raw message