@Override public Void apply(Throwable value) { LOG.error("Could not schedule or update consumers at the JobManager.", value); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers.", value)); return null; } }, executor);
void triggerPartitionStateCheck(ResultPartitionID partitionId) { taskActions.triggerPartitionProducerStateCheck(jobId, consumedResultId, partitionId); }
@Override public void onFailure(Throwable failure) { LOG.error("Could not schedule or update consumers at the JobManager.", failure); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers", failure)); } }, executionContext);
void triggerPartitionStateCheck(ResultPartitionID partitionId) { taskActions.triggerPartitionProducerStateCheck(jobId, consumedResultId, partitionId); }
@Override public void onFailure(Throwable failure) { LOG.error("Could not schedule or update consumers at the JobManager.", failure); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers", failure)); } }, executionContext);
void triggerPartitionStateCheck(ResultPartitionID partitionId) { taskActions.triggerPartitionProducerStateCheck(jobId, consumedResultId, partitionId); }
@Override public void onFailure(Throwable failure) { LOG.error("Could not schedule or update consumers at the JobManager.", failure); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers", failure)); } }, executionContext);
void triggerPartitionStateCheck(ResultPartitionID partitionId) { taskActions.triggerPartitionProducerStateCheck(jobId, consumedResultId, partitionId); }
@Override public void onFailure(Throwable failure) { LOG.error("Could not schedule or update consumers at the JobManager.", failure); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers", failure)); } }, executionContext);
@Override public void notifyPartitionConsumable(JobID jobId, ResultPartitionID partitionId, final TaskActions taskActions) { CompletableFuture<Acknowledge> acknowledgeFuture = jobMasterGateway.scheduleOrUpdateConsumers(partitionId, timeout); acknowledgeFuture.whenCompleteAsync( (Acknowledge ack, Throwable throwable) -> { if (throwable != null) { LOG.error("Could not schedule or update consumers at the JobManager.", throwable); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers.", throwable)); } }, executor); }
@Override public void notifyPartitionConsumable(JobID jobId, ResultPartitionID partitionId, final TaskActions taskActions) { CompletableFuture<Acknowledge> acknowledgeFuture = jobMasterGateway.scheduleOrUpdateConsumers(partitionId, timeout); acknowledgeFuture.whenCompleteAsync( (Acknowledge ack, Throwable throwable) -> { if (throwable != null) { LOG.error("Could not schedule or update consumers at the JobManager.", throwable); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers.", throwable)); } }, executor); } }
@Override public void notifyPartitionConsumable(JobID jobId, ResultPartitionID partitionId, final TaskActions taskActions) { CompletableFuture<Acknowledge> acknowledgeFuture = jobMasterGateway.scheduleOrUpdateConsumers(partitionId, timeout); acknowledgeFuture.whenCompleteAsync( (Acknowledge ack, Throwable throwable) -> { if (throwable != null) { LOG.error("Could not schedule or update consumers at the JobManager.", throwable); taskActions.failExternally(new RuntimeException("Could not notify JobManager to schedule or update consumers.", throwable)); } }, executor); } }