Allow retaining more than one snapshot #10206
Labels
component/snapshot
component/zeebe
Related to the Zeebe component/team
kind/toil
Categorizes an issue or PR as general maintenance, i.e. cleanup, refactoring, etc.
Only specific snapshots are valid to be included in the backup. Specifically a snapshot can be included in the backup if
snapshot position < lastWrittenPosition < checkpoint position
. Otherwise, if we recover from the backup, the state will be inconsistent.Before taking a backup, BackupManager finds a snapshot that satisfies the above condition. If there is no suitable snapshot, backup will fail. Since snapshots are taken quite frequently, this can increase the chance of not taking a backup. To prevent the backup from failing, it would be better if we retain more than one snapshot. So if the latest snapshot cannot be included in the backup, it can choose a previous one.
To achieve this:
The text was updated successfully, but these errors were encountered: