Class VertexFinishedStateChecker
java.lang.Object
org.apache.flink.runtime.checkpoint.VertexFinishedStateChecker
This class encapsulates the operation that checks if there are illegal modification to the
JobGraph when restoring from a checkpoint with partially or fully finished operator states.
As a whole, it ensures
- All the operators inside a JobVertex have the same finished state.
- The predecessors of a fully finished vertex must also be fully finished.
- The predecessors of a partially finished vertex
- If connected via ALL_TO_ALL edge, the predecessor must be fully finished.
- If connected via POINTWISE edge, the predecessor must be partially finished or fully finished.
-
Constructor Summary
ConstructorsConstructorDescriptionVertexFinishedStateChecker(Set<ExecutionJobVertex> vertices, Map<OperatorID, OperatorState> operatorStates) -
Method Summary
-
Constructor Details
-
VertexFinishedStateChecker
public VertexFinishedStateChecker(Set<ExecutionJobVertex> vertices, Map<OperatorID, OperatorState> operatorStates)
-
-
Method Details
-
validateOperatorsFinishedState
public void validateOperatorsFinishedState()
-