public class FsMergingCheckpointStorageAccess extends FsCheckpointStorageAccess
checkpointsDirectory, fileSizeThreshold, fileSystem, sharedStateDirectory, taskOwnedStateDirectory, writeBufferSize
CHECKPOINT_DIR_PREFIX, CHECKPOINT_SHARED_STATE_DIR, CHECKPOINT_TASK_OWNED_STATE_DIR, METADATA_FILE_NAME
Constructor and Description |
---|
FsMergingCheckpointStorageAccess(FileSystem fs,
Path checkpointBaseDirectory,
Path defaultSavepointDirectory,
JobID jobId,
int fileSizeThreshold,
int writeBufferSize,
FileMergingSnapshotManager fileMergingSnapshotManager,
Environment environment) |
Modifier and Type | Method and Description |
---|---|
void |
initializeBaseLocationsForCheckpoint()
Initializes the necessary prerequisites for storage locations of checkpoints.
|
CheckpointStreamFactory |
resolveCheckpointStorageLocation(long checkpointId,
CheckpointStorageLocationReference reference)
Resolves a storage location reference into a CheckpointStreamFactory.
|
createSavepointLocation, createTaskOwnedCheckpointStateToolset, createTaskOwnedStateStream, initializeLocationForCheckpoint, supportsHighlyAvailableStorage, toFileMergingStorage
createCheckpointDirectory, decodePathFromReference, encodePathAsReference, getCheckpointDirectoryForJob, getDefaultSavepointDirectory, hasDefaultSavepointLocation, initializeLocationForSavepoint, resolveCheckpoint, resolveCheckpointPointer
public FsMergingCheckpointStorageAccess(FileSystem fs, Path checkpointBaseDirectory, @Nullable Path defaultSavepointDirectory, JobID jobId, int fileSizeThreshold, int writeBufferSize, FileMergingSnapshotManager fileMergingSnapshotManager, Environment environment) throws IOException
IOException
public void initializeBaseLocationsForCheckpoint() throws IOException
CheckpointStorageCoordinatorView
For file-based checkpoint storage, this method would initialize essential base checkpoint
directories on checkpoint coordinator side and should be executed before calling CheckpointStorageCoordinatorView.initializeLocationForCheckpoint(long)
.
initializeBaseLocationsForCheckpoint
in interface CheckpointStorageCoordinatorView
initializeBaseLocationsForCheckpoint
in class FsCheckpointStorageAccess
IOException
- Thrown, if these base storage locations cannot be initialized due to an
I/O exception.public CheckpointStreamFactory resolveCheckpointStorageLocation(long checkpointId, CheckpointStorageLocationReference reference) throws IOException
CheckpointStorageWorkerView
The reference may be the default reference
, in which case the method should return the default location, taking
existing configuration and checkpoint ID into account.
resolveCheckpointStorageLocation
in interface CheckpointStorageWorkerView
resolveCheckpointStorageLocation
in class FsCheckpointStorageAccess
checkpointId
- The ID of the checkpoint that the location is initialized for.reference
- The checkpoint location reference.IOException
- Thrown, if the storage location cannot be initialized from the reference.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.