Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-1075

0 vertex dags should succeed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Currently 0 vertex dags fail because of the following code in DAGImpl

          if (numVertices == 0) {
            addDiagnostic("No vertices for dag");
            trySetTerminationCause(DAGTerminationCause.ZERO_VERTICES);
            if (event != null) {
              return DAGState.FAILED;
            }
            return finished(DAGState.FAILED);
          }
      

      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.

        Attachments

        1. TEZ-1075.patch
          4 kB
          Chen He
        2. TEZ-1075-v2.patch
          4 kB
          Chen He

          Activity

            People

            • Assignee:
              airbots Chen He
              Reporter:
              bikassaha Bikas Saha
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: