Examples of ExecutionState


Examples of org.apache.flink.runtime.execution.ExecutionState

    // network stack is canceled (for example by a failing / canceling receiver or sender
    // this is an artifact of the old network runtime, but for now we need to support task transitions
    // from running directly to canceled
   
    while (true) {
      ExecutionState current = this.state;
     
      if (current == CANCELED) {
        return;
      }
      else if (current == CANCELING || current == RUNNING || current == DEPLOYING) {
View Full Code Here

Examples of org.apache.flink.runtime.execution.ExecutionState

    // the actual computation on the task manager is cleaned up by the TaskManager that noticed the failure
   
    // we may need to loop multiple times (in the presence of concurrent calls) in order to
    // atomically switch to failed
    while (true) {
      ExecutionState current = this.state;
     
      if (current == FAILED) {
        // already failed. It is enough to remember once that we failed (its sad enough)
        return false;
      }
View Full Code Here

Examples of org.apache.flink.runtime.execution.ExecutionState

      // it can mean:
      //  - canceling, while deployment was in progress. state is now canceling, or canceled, if the response overtook
      //  - finishing (execution and finished call overtook the deployment answer, which is possible and happens for fast tasks)
      //  - failed (execution, failure, and failure message overtook the deployment answer)
     
      ExecutionState currentState = this.state;
     
      if (currentState == FINISHED || currentState == CANCELED) {
        // do nothing, the task was really fast (nice)
        // or it was canceled really fast
      }
View Full Code Here

Examples of org.apache.flink.runtime.execution.ExecutionState

  // --------------------------------------------------------------------------------------------
 
  public void resetForNewExecution() {
    synchronized (priorExecutions) {
      Execution execution = currentExecution;
      ExecutionState state = execution.getState();
     
      if (state == FINISHED || state == CANCELED || state == FAILED) {
        priorExecutions.add(execution);
        currentExecution = new Execution(this, execution.getAttemptNumber()+1, System.currentTimeMillis());
       
View Full Code Here

Examples of org.apache.flink.runtime.execution.ExecutionState

  @Test
  public void testEqualsHashCode() {
    try {
      final JobID jid = new JobID();
      final ExecutionAttemptID executionId = new ExecutionAttemptID();
      final ExecutionState state = ExecutionState.RUNNING;
      final Throwable error = new RuntimeException("some test error message");
     
      TaskExecutionState s1 = new TaskExecutionState(jid, executionId, state, error);
      TaskExecutionState s2 = new TaskExecutionState(jid, executionId, state, error);
     
View Full Code Here

Examples of org.apache.flink.runtime.execution.ExecutionState

  @Test
  public void testSerialization() {
    try {
      final JobID jid = new JobID();
      final ExecutionAttemptID executionId = new ExecutionAttemptID();
      final ExecutionState state = ExecutionState.DEPLOYING;
      final Throwable error = new IOException("fubar");
     
      TaskExecutionState original1 = new TaskExecutionState(jid, executionId, state, error);
      TaskExecutionState original2 = new TaskExecutionState(jid, executionId, state);
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.