Package org.apache.tez.dag.history.events

Examples of org.apache.tez.dag.history.events.VertexGroupCommitFinishedEvent


            (VertexGroupCommitStartedEvent) historyEvent;
        recoveredGroupCommits.put(
            vertexGroupCommitStartedEvent.getVertexGroupName(), false);
        return recoveredState;
      case VERTEX_GROUP_COMMIT_FINISHED:
        VertexGroupCommitFinishedEvent vertexGroupCommitFinishedEvent =
            (VertexGroupCommitFinishedEvent) historyEvent;
        recoveredGroupCommits.put(
            vertexGroupCommitFinishedEvent.getVertexGroupName(), true);
        return recoveredState;
      case DAG_FINISHED:
        recoveryCommitInProgress = false;
        DAGFinishedEvent finishedEvent = (DAGFinishedEvent) historyEvent;
        this.finishTime = finishedEvent.getFinishTime();
View Full Code Here


          if (failedCommit) {
            break;
          }
          try {
            appContext.getHistoryHandler().handleCriticalEvent(new DAGHistoryEvent(getID(),
                new VertexGroupCommitFinishedEvent(dagId, groupInfo.groupName,
                    clock.getTime())));
          } catch (IOException e) {
            LOG.error("Failed to send commit recovery event to handler", e);
            recoveryFailed = true;
            failedCommit = true;
View Full Code Here

          break;
        case VERTEX_GROUP_COMMIT_STARTED:
          event = new VertexGroupCommitStartedEvent();
          break;
        case VERTEX_GROUP_COMMIT_FINISHED:
          event = new VertexGroupCommitFinishedEvent();
          break;
        default:
          Assert.fail("Unhandled event type " + eventType);
      }
      if (event == null || !event.isHistoryEvent()) {
View Full Code Here

        break;
      case VERTEX_GROUP_COMMIT_STARTED:
        event = new VertexGroupCommitStartedEvent();
        break;
      case VERTEX_GROUP_COMMIT_FINISHED:
        event = new VertexGroupCommitFinishedEvent();
        break;
      case VERTEX_FINISHED:
        event = new VertexFinishedEvent();
        break;
      case TASK_STARTED:
View Full Code Here

          bufferedSummaryEvents.add(vertexGroupCommitStartedEvent);
          vertexGroupCommitStatus.put(
              vertexGroupCommitStartedEvent.getVertexGroupName(), false);
          break;
        case VERTEX_GROUP_COMMIT_FINISHED:
          VertexGroupCommitFinishedEvent vertexGroupCommitFinishedEvent =
              new VertexGroupCommitFinishedEvent();
          vertexGroupCommitFinishedEvent.fromSummaryProtoStream(proto);
          bufferedSummaryEvents.add(vertexGroupCommitFinishedEvent);
          vertexGroupCommitStatus.put(
              vertexGroupCommitFinishedEvent.getVertexGroupName(), true);
          break;
      }
    }
View Full Code Here

          break;
        case VERTEX_GROUP_COMMIT_STARTED:
          event = new VertexGroupCommitStartedEvent();
          break;
        case VERTEX_GROUP_COMMIT_FINISHED:
          event = new VertexGroupCommitFinishedEvent();
          break;
        default:
          Assert.fail("Unhandled event type " + eventType);
      }
      if (event == null || !event.isHistoryEvent()) {
View Full Code Here

        break;
      case VERTEX_GROUP_COMMIT_STARTED:
        event = new VertexGroupCommitStartedEvent();
        break;
      case VERTEX_GROUP_COMMIT_FINISHED:
        event = new VertexGroupCommitFinishedEvent();
        break;
      case VERTEX_FINISHED:
        event = new VertexFinishedEvent();
        break;
      case TASK_STARTED:
View Full Code Here

          bufferedSummaryEvents.add(vertexGroupCommitStartedEvent);
          vertexGroupCommitStatus.put(
              vertexGroupCommitStartedEvent.getVertexGroupName(), false);
          break;
        case VERTEX_GROUP_COMMIT_FINISHED:
          VertexGroupCommitFinishedEvent vertexGroupCommitFinishedEvent =
              new VertexGroupCommitFinishedEvent();
          vertexGroupCommitFinishedEvent.fromSummaryProtoStream(proto);
          bufferedSummaryEvents.add(vertexGroupCommitFinishedEvent);
          vertexGroupCommitStatus.put(
              vertexGroupCommitFinishedEvent.getVertexGroupName(), true);
          break;
      }
    }
View Full Code Here

            (VertexGroupCommitStartedEvent) historyEvent;
        recoveredGroupCommits.put(
            vertexGroupCommitStartedEvent.getVertexGroupName(), false);
        return recoveredState;
      case VERTEX_GROUP_COMMIT_FINISHED:
        VertexGroupCommitFinishedEvent vertexGroupCommitFinishedEvent =
            (VertexGroupCommitFinishedEvent) historyEvent;
        recoveredGroupCommits.put(
            vertexGroupCommitFinishedEvent.getVertexGroupName(), true);
        return recoveredState;
      case DAG_FINISHED:
        recoveryCommitInProgress = false;
        DAGFinishedEvent finishedEvent = (DAGFinishedEvent) historyEvent;
        this.finishTime = finishedEvent.getFinishTime();
View Full Code Here

          if (failedCommit) {
            break;
          }
          try {
            appContext.getHistoryHandler().handleCriticalEvent(new DAGHistoryEvent(getID(),
                new VertexGroupCommitFinishedEvent(dagId, groupInfo.groupName,
                    clock.getTime())));
          } catch (IOException e) {
            LOG.error("Failed to send commit recovery event to handler", e);
            recoveryFailed = true;
            failedCommit = true;
View Full Code Here

TOP

Related Classes of org.apache.tez.dag.history.events.VertexGroupCommitFinishedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.