okumin commented on code in PR #361:
URL: https://github.com/apache/tez/pull/361#discussion_r1895638369


##########
tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java:
##########
@@ -2817,6 +2817,18 @@ private VertexState setupVertex() {
     return VertexState.INITED;
   }
 
+  private boolean canSkipInitializingParents() {
+    // Both cases use RootInputVertexManager. RootInputVertexManager can start 
tasks even though
+    // any parents are not fully initialized.
+    if (vertexPlan.hasVertexManagerPlugin()) {
+      final VertexManagerPluginDescriptor pluginDesc = DagTypeConverters
+          
.convertVertexManagerPluginDescriptorFromDAGPlan(vertexPlan.getVertexManagerPlugin());
+      return 
pluginDesc.getClassName().equals(RootInputVertexManager.class.getName());
+    } else {
+      return inputsWithInitializers != null;

Review Comment:
   Done.
   
https://github.com/apache/tez/pull/361/commits/c8c18fcb49de1d0cadd368ed8db73750f9d154f7
   
   I kept this branch intentionally because there might be a case where a 
vertex manager plugin is explicitly configured but it is not a 
RootInputVertexManager.
   
   ```
       if (vertexPlan.hasVertexManagerPlugin()) {
         final VertexManagerPluginDescriptor pluginDesc = DagTypeConverters
             
.convertVertexManagerPluginDescriptorFromDAGPlan(vertexPlan.getVertexManagerPlugin());
         return 
pluginDesc.getClassName().equals(RootInputVertexManager.class.getName());
       } else {
         // This case implicitly uses RootInputVertexManager. See 
VertexImpl#assignVertexManager
         return hasInputInitializers();
       }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to