@Internal public class LocalChangelogRegistryImpl extends Object implements LocalChangelogRegistry
NO_OP
Constructor and Description |
---|
LocalChangelogRegistryImpl(Executor ioExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
discardUpToCheckpoint(long upTo)
Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete and
ChangelogKeyedStateBackend#notifyCheckpointSubsumed.
|
void |
prune(long checkpointID)
Called upon ChangelogKeyedStateBackend#notifyCheckpointAborted.
|
void |
register(StreamStateHandle handle,
long checkpointID)
Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete.
|
public LocalChangelogRegistryImpl(Executor ioExecutor)
public void register(StreamStateHandle handle, long checkpointID)
LocalChangelogRegistry
register
in interface LocalChangelogRegistry
handle
- handle to register.checkpointID
- latest used checkpointID.public void discardUpToCheckpoint(long upTo)
LocalChangelogRegistry
CompletedCheckpointStore.addCheckpointAndSubsumeOldestOne(org.apache.flink.runtime.checkpoint.CompletedCheckpoint, org.apache.flink.runtime.checkpoint.CheckpointsCleaner, java.lang.Runnable)
, local dtsl handles
are unregistered when the checkpoint completes, because only one checkpoint is kept for local
recovery.discardUpToCheckpoint
in interface LocalChangelogRegistry
upTo
- lowest CheckpointID which is still valid.public void prune(long checkpointID)
LocalChangelogRegistry
prune
in interface LocalChangelogRegistry
checkpointID
- to abortCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.