Class RegionPartitionGroupReleaseStrategy
java.lang.Object
org.apache.flink.runtime.executiongraph.failover.partitionrelease.RegionPartitionGroupReleaseStrategy
- All Implemented Interfaces:
PartitionGroupReleaseStrategy,SchedulingTopologyListener
public class RegionPartitionGroupReleaseStrategy
extends Object
implements PartitionGroupReleaseStrategy, SchedulingTopologyListener
Releases blocking intermediate result partitions that are incident to a
SchedulingPipelinedRegion, as soon as the region's execution vertices are finished.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRegionOfVertexFinished(ExecutionVertexID executionVertexId) voidnotifySchedulingTopologyUpdated(SchedulingTopology schedulingTopology, List<ExecutionVertexID> newExecutionVertices) Notifies that the scheduling topology is just updated.vertexFinished(ExecutionVertexID finishedVertex) Calling this method informs the strategy that a vertex finished.voidvertexUnfinished(ExecutionVertexID executionVertexId) Calling this method informs the strategy that a vertex is no longer in finished state, e.g., when a vertex is re-executed.
-
Constructor Details
-
RegionPartitionGroupReleaseStrategy
-
-
Method Details
-
vertexFinished
Description copied from interface:PartitionGroupReleaseStrategyCalling this method informs the strategy that a vertex finished.- Specified by:
vertexFinishedin interfacePartitionGroupReleaseStrategy- Parameters:
finishedVertex- Id of the vertex that finished the execution- Returns:
- A list of
ConsumedPartitionGroupsthat can be released
-
vertexUnfinished
Description copied from interface:PartitionGroupReleaseStrategyCalling this method informs the strategy that a vertex is no longer in finished state, e.g., when a vertex is re-executed.- Specified by:
vertexUnfinishedin interfacePartitionGroupReleaseStrategy- Parameters:
executionVertexId- Id of the vertex that is no longer in finished state.
-
isRegionOfVertexFinished
-
notifySchedulingTopologyUpdated
public void notifySchedulingTopologyUpdated(SchedulingTopology schedulingTopology, List<ExecutionVertexID> newExecutionVertices) Description copied from interface:SchedulingTopologyListenerNotifies that the scheduling topology is just updated.- Specified by:
notifySchedulingTopologyUpdatedin interfaceSchedulingTopologyListener- Parameters:
schedulingTopology- the scheduling topology which is just updatednewExecutionVertices- the newly added execution vertices.
-