[ 
https://issues.apache.org/jira/browse/TEZ-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003920#comment-14003920
 ] 

Hitesh Shah edited comment on TEZ-1075 at 5/20/14 8:20 PM:
-----------------------------------------------------------

Are we planning to disable the TezClient from launching a application in 
non-session mode where the DAG has zero vertices? 

IAC, if this needs to go in, [~airbots], have you handled the recovery 
scenarios where a zero-vertex DAG got submitted but did not complete before the 
AM crashed?



was (Author: hitesh):
Are we planning to disable the TezClient from launching a application in 
non-session mode where the DAG has zero vertices? 

IAC, if this needs to go in, @Chen He, have you handled the recovery scenarios 
where a zero-vertex DAG got submitted but did not complete before the AM 
crashed?


> 0 vertex dags should succeed
> ----------------------------
>
>                 Key: TEZ-1075
>                 URL: https://issues.apache.org/jira/browse/TEZ-1075
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Bikas Saha
>            Assignee: Chen He
>              Labels: newbie++
>         Attachments: TEZ-1075-v2.patch, TEZ-1075.patch
>
>
> Currently 0 vertex dags fail because of the following code in DAGImpl
> {code}    if (numVertices == 0) {
>       addDiagnostic("No vertices for dag");
>       trySetTerminationCause(DAGTerminationCause.ZERO_VERTICES);
>       if (event != null) {
>         return DAGState.FAILED;
>       }
>       return finished(DAGState.FAILED);
>     }
> {code}
> IMO a 0 vertex DAG is a legitimate construct and should just pass. Similar to 
> a 0 task vertex. Its essentially a no-op operation.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to