use of org.apache.flink.runtime.checkpoint.Checkpoints in project flink by apache.
the class OperatorCoordinatorSchedulerTest method createSchedulerWithoutCheckpointingAndDeployTasks.
private DefaultScheduler createSchedulerWithoutCheckpointingAndDeployTasks() throws Exception {
final Consumer<JobGraph> noCheckpoints = (jobGraph) -> jobGraph.setSnapshotSettings(null);
final DefaultScheduler scheduler = setupTestJobAndScheduler(new TestingOperatorCoordinator.Provider(testOperatorId), null, noCheckpoints, false);
// guard test assumptions: this must set up a scheduler without checkpoints
assertNull(scheduler.getExecutionGraph().getCheckpointCoordinator());
scheduleAllTasksToRunning(scheduler);
return scheduler;
}
Aggregations