Interface JobMasterPartitionTracker
- All Superinterfaces:
PartitionTracker<ResourceID,ResultPartitionDeploymentDescriptor>
- All Known Implementing Classes:
JobMasterPartitionTrackerImpl
public interface JobMasterPartitionTracker
extends PartitionTracker<ResourceID,ResultPartitionDeploymentDescriptor>
Utility for tracking partitions and issuing release calls to task executors and shuffle masters.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnectToResourceManager(ResourceManagerGateway resourceManagerGateway) Gets all the cluster partitions under tracking.Gets all the non-cluster partitions under tracking.Gets all the partitions under tracking.getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateDataSetID) Get the shuffle descriptors of the cluster partitions ordered by partition number.voidstartTrackingPartition(ResourceID producingTaskExecutorId, ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor) Starts the tracking of the given partition for the given task executor ID.stopTrackingAndPromotePartitions(Collection<ResultPartitionID> resultPartitionIds) Promotes the given partitions, and stops the tracking of partitions that were promoted.default voidstopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds) Releases the given partitions and stop the tracking of partitions that were released.voidstopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds, boolean releaseOnShuffleMaster) Releases the given partitions and stop the tracking of partitions that were released.Methods inherited from interface org.apache.flink.runtime.io.network.partition.PartitionTracker
isPartitionTracked, isTrackingPartitionsFor, stopTrackingPartitions, stopTrackingPartitionsFor
-
Method Details
-
startTrackingPartition
void startTrackingPartition(ResourceID producingTaskExecutorId, ResultPartitionDeploymentDescriptor resultPartitionDeploymentDescriptor) Starts the tracking of the given partition for the given task executor ID.- Parameters:
producingTaskExecutorId- ID of task executor on which the partition is producedresultPartitionDeploymentDescriptor- deployment descriptor of the partition
-
stopTrackingAndReleasePartitions
Releases the given partitions and stop the tracking of partitions that were released. -
stopTrackingAndReleasePartitions
void stopTrackingAndReleasePartitions(Collection<ResultPartitionID> resultPartitionIds, boolean releaseOnShuffleMaster) Releases the given partitions and stop the tracking of partitions that were released. The boolean flag indicates whether we need to notify the ShuffleMaster to release all external resources or not. -
stopTrackingAndPromotePartitions
CompletableFuture<Void> stopTrackingAndPromotePartitions(Collection<ResultPartitionID> resultPartitionIds) Promotes the given partitions, and stops the tracking of partitions that were promoted.- Parameters:
resultPartitionIds- ID of the partition containing both job partitions and cluster partitions.- Returns:
- Future that will be completed if the partitions are promoted.
-
getAllTrackedPartitions
Collection<ResultPartitionDeploymentDescriptor> getAllTrackedPartitions()Gets all the partitions under tracking. -
getAllTrackedNonClusterPartitions
Gets all the non-cluster partitions under tracking. -
getAllTrackedClusterPartitions
Gets all the cluster partitions under tracking. -
connectToResourceManager
-
getClusterPartitionShuffleDescriptors
List<ShuffleDescriptor> getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateDataSetID) Get the shuffle descriptors of the cluster partitions ordered by partition number.
-