public class SpeculativeExecutionVertex extends ExecutionVertex
NUM_BYTES_UNKNOWN| Constructor and Description |
|---|
SpeculativeExecutionVertex(ExecutionJobVertex jobVertex,
int subTaskIndex,
IntermediateResult[] producedDataSets,
org.apache.flink.api.common.time.Time timeout,
long createTimestamp,
int executionHistorySizeLimit,
int initialAttemptCount) |
| Modifier and Type | Method and Description |
|---|---|
ArchivedExecutionVertex |
archive() |
void |
archiveFailedExecution(ExecutionAttemptID executionAttemptId)
Remove execution from currentExecutions if it is failed.
|
CompletableFuture<?> |
cancel()
Cancels this ExecutionVertex.
|
Execution |
createNewSpeculativeExecution(long timestamp) |
void |
deploy() |
void |
deployToSlot(LogicalSlot slot) |
void |
fail(Throwable t) |
Execution |
getCurrentExecution(int attemptNumber) |
Execution |
getCurrentExecutionAttempt()
Returns the current execution for this execution vertex.
|
Collection<Execution> |
getCurrentExecutions()
Returns the current executions for this execution vertex.
|
Optional<org.apache.flink.core.io.InputSplit> |
getNextInputSplit(String host,
int attemptNumber) |
Execution |
getPartitionProducer() |
Optional<TaskManagerLocation> |
getPreferredLocationBasedOnState()
Gets the preferred location to execute the current task execution attempt, based on the state
that the execution attempt will resume.
|
boolean |
isOriginalAttempt(int attemptNumber)
Returns whether the given attempt is the original execution attempt of the execution vertex,
i.e. it is created along with the creation of resetting of the execution vertex.
|
boolean |
isSupportsConcurrentExecutionAttempts() |
void |
markFailed(Throwable t)
This method marks the task as failed, but will make no attempt to remove task execution from
the task manager.
|
void |
resetForNewExecution()
Archives the current Execution and creates a new Execution for this vertex.
|
CompletableFuture<?> |
suspend() |
void |
tryAssignResource(LogicalSlot slot) |
addConsumedPartitionGroup, findLastAllocation, findLastLocation, finishPartitionsIfNeeded, getAllConsumedPartitionGroups, getConsumedPartitionGroup, getCurrentAssignedResource, getCurrentAssignedResourceLocation, getCurrentTaskManagerLocationFuture, getExecutionGraphAccessor, getExecutionHistory, getExecutionState, getExecutionVertexInputInfo, getFailureInfo, getID, getInputBytes, getJobId, getJobVertex, getJobvertexId, getMaxParallelism, getNumberOfInputs, getParallelSubtaskIndex, getProducedPartitions, getResourceProfile, getStateTimestamp, getTaskName, getTaskNameWithSubtaskIndex, getTotalNumberOfParallelSubtasks, setInputBytes, toStringpublic SpeculativeExecutionVertex(ExecutionJobVertex jobVertex, int subTaskIndex, IntermediateResult[] producedDataSets, org.apache.flink.api.common.time.Time timeout, long createTimestamp, int executionHistorySizeLimit, int initialAttemptCount)
public boolean isSupportsConcurrentExecutionAttempts()
public Execution createNewSpeculativeExecution(long timestamp)
public boolean isOriginalAttempt(int attemptNumber)
public Collection<Execution> getCurrentExecutions()
AccessExecutionVertexgetCurrentExecutions in interface AccessExecutionVertexgetCurrentExecutions in class ExecutionVertexpublic Execution getCurrentExecution(int attemptNumber)
getCurrentExecution in class ExecutionVertexpublic Execution getPartitionProducer()
getPartitionProducer in class ExecutionVertexpublic CompletableFuture<?> cancel()
ExecutionVertexcancel in class ExecutionVertexpublic CompletableFuture<?> suspend()
suspend in class ExecutionVertexpublic void fail(Throwable t)
fail in class ExecutionVertexpublic void markFailed(Throwable t)
ExecutionVertexmarkFailed in class ExecutionVertext - The exception that caused the task to fail.public void resetForNewExecution()
ExecutionVertexresetForNewExecution in class ExecutionVertexpublic void archiveFailedExecution(ExecutionAttemptID executionAttemptId)
executionAttemptId - attemptID of the execution to be removedpublic Execution getCurrentExecutionAttempt()
AccessExecutionVertexgetCurrentExecutionAttempt in interface AccessExecutionVertexgetCurrentExecutionAttempt in class ExecutionVertexpublic Optional<org.apache.flink.core.io.InputSplit> getNextInputSplit(String host, int attemptNumber)
getNextInputSplit in class ExecutionVertexpublic ArchivedExecutionVertex archive()
archive in interface org.apache.flink.api.common.Archiveable<ArchivedExecutionVertex>archive in class ExecutionVertexpublic void tryAssignResource(LogicalSlot slot)
tryAssignResource in class ExecutionVertexpublic void deploy()
deploy in class ExecutionVertexpublic void deployToSlot(LogicalSlot slot)
deployToSlot in class ExecutionVertexpublic Optional<TaskManagerLocation> getPreferredLocationBasedOnState()
ExecutionVertexgetPreferredLocationBasedOnState in class ExecutionVertexCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.