when(network.getResultPartitionManager()).thenReturn(partitionManager); when(network.getDefaultIOMode()).thenReturn(IOManager.IOMode.SYNC); when(network.createKvStateTaskRegistry(any(JobID.class), any(JobVertexID.class)))
protected ResultPartitionWriter createResultPartition( JobID jobId, ResultPartitionID partitionId, NetworkEnvironment environment, int channels) throws Exception { ResultPartition resultPartition = new ResultPartition( "sender task", new NoOpTaskActions(), jobId, partitionId, ResultPartitionType.PIPELINED_BOUNDED, channels, 1, environment.getResultPartitionManager(), new NoOpResultPartitionConsumableNotifier(), ioManager, false); environment.setupPartition(resultPartition); return resultPartition; }
@Override public void failPartition(ExecutionAttemptID executionAttemptID) { log.info("Discarding the results produced by task execution {}.", executionAttemptID); try { networkEnvironment.getResultPartitionManager().releasePartitionsProducedBy(executionAttemptID); } catch (Throwable t) { // TODO: Do we still need this catch branch? onFatalError(t); } // TODO: Maybe it's better to return an Acknowledge here to notify the JM about the success/failure with an Exception }
@Override public void failPartition(ExecutionAttemptID executionAttemptID) { log.info("Discarding the results produced by task execution {}.", executionAttemptID); try { networkEnvironment.getResultPartitionManager().releasePartitionsProducedBy(executionAttemptID); } catch (Throwable t) { // TODO: Do we still need this catch branch? onFatalError(t); } // TODO: Maybe it's better to return an Acknowledge here to notify the JM about the success/failure with an Exception }
@Override public void failPartition(ExecutionAttemptID executionAttemptID) { log.info("Discarding the results produced by task execution {}.", executionAttemptID); try { networkEnvironment.getResultPartitionManager().releasePartitionsProducedBy(executionAttemptID); } catch (Throwable t) { // TODO: Do we still need this catch branch? onFatalError(t); } // TODO: Maybe it's better to return an Acknowledge here to notify the JM about the success/failure with an Exception }
@RpcMethod public void failPartition(ExecutionAttemptID executionAttemptID) { log.info("Discarding the results produced by task execution {}.", executionAttemptID); try { networkEnvironment.getResultPartitionManager().releasePartitionsProducedBy(executionAttemptID); } catch (Throwable t) { // TODO: Do we still need this catch branch? onFatalError(t); } // TODO: Maybe it's better to return an Acknowledge here to notify the JM about the success/failure with an Exception }
desc.getNumberOfSubpartitions(), desc.getMaxParallelism(), network.getResultPartitionManager(), resultPartitionConsumableNotifier, ioManager,
networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getPartitionRequestInitialBackoff(), networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getConnectionManager(),
networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getPartitionRequestInitialBackoff(), networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getConnectionManager(),
networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getPartitionRequestInitialBackoff(), networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getConnectionManager(),
networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getPartitionRequestInitialBackoff(), networkEnvironment.getResultPartitionManager(), networkEnvironment.getTaskEventDispatcher(), networkEnvironment.getConnectionManager(),