org.apache.flink.runtime.execution.Environment.declineCheckpoint()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.apache.flink.runtime.execution.Environment.declineCheckpoint()方法的一些代码示例,展示了Environment.declineCheckpoint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.declineCheckpoint()方法的具体详情如下:
包路径:org.apache.flink.runtime.execution.Environment
类名称:Environment
方法名:declineCheckpoint

Environment.declineCheckpoint介绍

[英]Declines a checkpoint. This tells the checkpoint coordinator that this task will not be able to successfully complete a certain checkpoint.
[中]拒绝检查点。这会告诉检查点协调员此任务将无法成功完成某个检查点。

代码示例

代码示例来源:origin: apache/flink

@Override
  public void tryHandleCheckpointException(
    CheckpointMetaData checkpointMetaData,
    Exception exception) throws Exception {
    environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
  }
}

代码示例来源:origin: apache/flink

@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  // notify the coordinator that we decline this checkpoint
  getEnvironment().declineCheckpoint(checkpointId, cause);
  // notify all downstream operators that they should not wait for a barrier from us
  synchronized (lock) {
    operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  }
}

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11

@Override
  public void tryHandleCheckpointException(
    CheckpointMetaData checkpointMetaData,
    Exception exception) throws Exception {
    environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
  }
}

代码示例来源:origin: org.apache.flink/flink-streaming-java

@Override
  public void tryHandleCheckpointException(
    CheckpointMetaData checkpointMetaData,
    Exception exception) throws Exception {
    environment.declineCheckpoint(checkpointMetaData.getCheckpointId(), exception);
  }
}

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.10

@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  // notify the coordinator that we decline this checkpoint
  getEnvironment().declineCheckpoint(checkpointId, cause);
  // notify all downstream operators that they should not wait for a barrier from us
  synchronized (lock) {
    operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  }
}

代码示例来源:origin: org.apache.flink/flink-streaming-java_2.11

@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  // notify the coordinator that we decline this checkpoint
  getEnvironment().declineCheckpoint(checkpointId, cause);
  // notify all downstream operators that they should not wait for a barrier from us
  synchronized (lock) {
    operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  }
}

代码示例来源:origin: org.apache.flink/flink-streaming-java

@Override
public void abortCheckpointOnBarrier(long checkpointId, Throwable cause) throws Exception {
  LOG.debug("Aborting checkpoint via cancel-barrier {} for task {}", checkpointId, getName());
  // notify the coordinator that we decline this checkpoint
  getEnvironment().declineCheckpoint(checkpointId, cause);
  // notify all downstream operators that they should not wait for a barrier from us
  synchronized (lock) {
    operatorChain.broadcastCheckpointCancelMarker(checkpointId);
  }
}

相关文章