Savepoints
A Savepoint resource points to a single savepoint or retained checkpoint in Apache Flink®. A single Apache Flink® savepoint can be referenced by multiple Ververica Platform Savepoint resources.
Please consult the official Apache Flink® documentation on savepoints and checkpoints for more details on savepoints and checkpoints in Apache Flink®.
Specification
The Restore Strategy of your Deployment resources controls which Savepoint will be used to restore the state of a Apache Flink® job.
Ververica Platform only keeps track of Apache Flink® savepoints that are created within the Ververica Platform.
Savepoint Origins
A Savepoint can be created in various ways. Its origin is described by the metadata.origin
attribute:
USER_REQUEST
: The Savepoint was requested manually by a user through Ververica Platform.SUSPEND
: The Savepoint was requested when the corresponding Deployment was suspended.COPIED
: The Savepoint is either a copy of another Savepoint resource, or was created manually using an existingsavepointLocation
(see below). Both Savepoint resources point to the same physical Apache Flink® savepoint.RETAINED_CHECKPOINT
: The Savepoint is a retained Apache Flink® checkpoint that was not discarded after the Apache Flink® job was cancelled.
Savepoint States
The current state of a Savepoint resource is described by the status.state
attribute:
STARTED
: The Savepoint was started, but is not completed yet.COMPLETED
: The Savepoint was completed successfully and can be restored from.FAILED
: Creation of the Savepoint failed. Details on the cause of failure can be found in thestatus.failure
field.PENDING_DELETION
: The Savepoint was marked for deletion. It will automatically be deleted if it meets all prerequisites. It can no longer be restored from.DELETING
: The Savepoint is currently being deleted. It can no longer be restored from.FAILED_DELETION
: Deletion of the Savepoint failed. Details on the cause of failure can be found in thestatus.failure
field. It can no longer be restored from. Deletion can be retried.