Add last written position as metadata in snapshot #10115
Labels
kind/toil
Categorizes an issue or PR as general maintenance, i.e. cleanup, refactoring, etc.
version:8.1.0-alpha5
Marks an issue as being completely or in parts released in 8.1.0-alpha5
version:8.1.0
Marks an issue as being completely or in parts released in 8.1.0
Description
Ref:- #9906 (comment)
For backup manager to identify if a snapshot can be included in the snapshot, a snapshot must include the position of the followup event included in the snapshot as part of its metadata. This event is the event whose source position = lastProcessedPosition in the snapshot. Since it is not possible to find actual "lastProcessedPosition" in the snapshot without opening the database, we can approximate it by taking "lastWrittenPosition" used by the
AsyncSnapshotDirector
to commit the snapshot. This value might be an over approximation, but it is safe to use it.The text was updated successfully, but these errors were encountered: