XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6.2, 0.8.0-alpha, 0.7.1
    • None
    • None

    Description

      Currently we only identify the container failure cause for PREEMPTED / DISKS_FAILED, that means except for these 2 cases, there would be no clear diagnostic message for other cases.

            String message = "Container completed. ";
            TaskAttemptTerminationCause errCause = TaskAttemptTerminationCause.CONTAINER_EXITED;
            int exitStatus = containerStatus.getExitStatus();
            if (exitStatus == ContainerExitStatus.PREEMPTED) {
              message = "Container preempted externally. ";
              errCause = TaskAttemptTerminationCause.EXTERNAL_PREEMPTION;
            } else if (exitStatus == ContainerExitStatus.DISKS_FAILED) {
              message = "Container disk failed. ";
              errCause = TaskAttemptTerminationCause.NODE_DISK_ERROR;
            } else if (exitStatus != ContainerExitStatus.SUCCESS){
              message = "Container failed. ";
            }
            if (containerStatus.getDiagnostics() != null) {
              message += containerStatus.getDiagnostics();
            }
            sendEvent(new AMContainerEventCompleted(amContainer.getContainerId(), exitStatus, message, errCause));
      

      Attachments

        1. TEZ-2511-1.patch
          3 kB
          Jeff Zhang

        Activity

          People

            zjffdu Jeff Zhang
            zjffdu Jeff Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: