Search in sources :

Example 1 with DAGEventDiagnosticsUpdate

use of org.apache.tez.dag.app.dag.event.DAGEventDiagnosticsUpdate in project tez by apache.

the class TaskImpl method internalErrorUncaughtException.

protected void internalErrorUncaughtException(TaskEventType type, Exception e) {
    eventHandler.handle(new DAGEventDiagnosticsUpdate(this.taskId.getVertexID().getDAGId(), "Uncaught exception when handling  event " + type + " on Task " + this.taskId + ", error=" + e.getMessage()));
    eventHandler.handle(new DAGEvent(this.taskId.getVertexID().getDAGId(), DAGEventType.INTERNAL_ERROR));
}
Also used : DAGEvent(org.apache.tez.dag.app.dag.event.DAGEvent) DAGEventDiagnosticsUpdate(org.apache.tez.dag.app.dag.event.DAGEventDiagnosticsUpdate)

Example 2 with DAGEventDiagnosticsUpdate

use of org.apache.tez.dag.app.dag.event.DAGEventDiagnosticsUpdate in project tez by apache.

the class TaskImpl method internalError.

protected void internalError(TaskEventType type) {
    LOG.error("Invalid event " + type + " on Task " + this.taskId + " in state:" + getInternalState());
    eventHandler.handle(new DAGEventDiagnosticsUpdate(this.taskId.getVertexID().getDAGId(), "Invalid event " + type + " on Task " + this.taskId));
    eventHandler.handle(new DAGEvent(this.taskId.getVertexID().getDAGId(), DAGEventType.INTERNAL_ERROR));
}
Also used : DAGEvent(org.apache.tez.dag.app.dag.event.DAGEvent) DAGEventDiagnosticsUpdate(org.apache.tez.dag.app.dag.event.DAGEventDiagnosticsUpdate)

Aggregations

DAGEvent (org.apache.tez.dag.app.dag.event.DAGEvent)2 DAGEventDiagnosticsUpdate (org.apache.tez.dag.app.dag.event.DAGEventDiagnosticsUpdate)2