Provide minSequenceNr for snapshot deletion (#25590)

* Provide minSequenceNr for snapshot deletion

Journals can use this to make the bulk deletion more efficient

Use keepNrBatches to delete the last few snapshots in case previous
deletes failed.
This commit is contained in:
Christopher Batey 2018-09-25 13:38:18 +01:00 committed by GitHub
parent d7c463e033
commit 23b9266fca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 20 deletions

View file

@ -693,7 +693,9 @@ A persistent actor can delete individual snapshots by calling the `deleteSnapsho
when the snapshot was taken.
To bulk-delete a range of snapshots matching `SnapshotSelectionCriteria`,
persistent actors should use the `deleteSnapshots` method.
persistent actors should use the `deleteSnapshots` method. Depending on the journal used this might be inefficient. It is
best practice to do specific deletes with `deleteSnapshot` or to include a `minSequenceNr` as well as a `maxSequenceNr`
for the `SnapshotSelectionCriteria`.
### Snapshot status handling