Class TieredInternalShuffleMaster
java.lang.Object
org.apache.flink.runtime.io.network.partition.hybrid.tiered.shuffle.TieredInternalShuffleMaster
A wrapper internal shuffle master class for tiered storage. All the tiered storage operations
with the shuffle master should be wrapped in this class.
-
Constructor Summary
ConstructorsConstructorDescriptionTieredInternalShuffleMaster(ShuffleMasterContext shuffleMasterContext, ShuffleDescriptorRetriever shuffleDescriptorRetriever) -
Method Summary
Modifier and TypeMethodDescriptionaddPartitionAndGetShuffleDescriptor(org.apache.flink.api.common.JobID jobID, int numSubpartitions, ResultPartitionID resultPartitionID) voidclose()getPartitionWithMetrics(JobShuffleContext jobShuffleContext, Duration timeout, Set<ResultPartitionID> expectedPartitions) voidregisterJob(JobShuffleContext context) Registers the target job together with the correspondingJobShuffleContextto this shuffle master.voidreleasePartition(ShuffleDescriptor shuffleDescriptor) voidrestoreState(List<TieredInternalShuffleMasterSnapshot> snapshots, org.apache.flink.api.common.JobID jobId) voidrestoreState(TieredInternalShuffleMasterSnapshot clusterSnapshot) voidsnapshotState(CompletableFuture<AllTieredShuffleMasterSnapshots> snapshotFuture) voidsnapshotState(CompletableFuture<AllTieredShuffleMasterSnapshots> snapshotFuture, ShuffleMasterSnapshotContext context, org.apache.flink.api.common.JobID jobId) booleanvoidunregisterJob(org.apache.flink.api.common.JobID jobID) Unregisters the target job from this shuffle master, which means the corresponding job has reached a global termination state and all the allocated resources except for the cluster partitions can be cleared.
-
Constructor Details
-
TieredInternalShuffleMaster
public TieredInternalShuffleMaster(ShuffleMasterContext shuffleMasterContext, ShuffleDescriptorRetriever shuffleDescriptorRetriever)
-
-
Method Details
-
supportsBatchSnapshot
public boolean supportsBatchSnapshot() -
snapshotState
public void snapshotState(CompletableFuture<AllTieredShuffleMasterSnapshots> snapshotFuture, ShuffleMasterSnapshotContext context, org.apache.flink.api.common.JobID jobId) -
snapshotState
-
restoreState
public void restoreState(List<TieredInternalShuffleMasterSnapshot> snapshots, org.apache.flink.api.common.JobID jobId) -
restoreState
-
getPartitionWithMetrics
public CompletableFuture<Collection<PartitionWithMetrics>> getPartitionWithMetrics(JobShuffleContext jobShuffleContext, Duration timeout, Set<ResultPartitionID> expectedPartitions) -
registerJob
Registers the target job together with the correspondingJobShuffleContextto this shuffle master. -
unregisterJob
public void unregisterJob(org.apache.flink.api.common.JobID jobID) Unregisters the target job from this shuffle master, which means the corresponding job has reached a global termination state and all the allocated resources except for the cluster partitions can be cleared.- Parameters:
jobID- ID of the target job to be unregistered.
-
addPartitionAndGetShuffleDescriptor
public List<TierShuffleDescriptor> addPartitionAndGetShuffleDescriptor(org.apache.flink.api.common.JobID jobID, int numSubpartitions, ResultPartitionID resultPartitionID) -
releasePartition
-
close
public void close()
-