You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> @kevlu93 Do you simply wish to specify the log index that needs to be purged manually?
And I do not know what a snapshot buffer is. Did you mean to keep the last two snapshots?
Yup exactly we want to keep the last two snapshots, so being able to specify the log index manually would be helpful if we switch to a time based snapshot triggers.
This method allows users to purge logs when required.
It initiates the log purge up to and including the given `upto` log index.
Logs that are not included in a snapshot will **NOT** be purged.
In such scenario it will delete as many log as possible.
The `max_in_snapshot_log_to_keep` config is not taken into account when
purging logs.
Openraft won't purge logs at once, e.g. it may be delayed by several
seconds, because if it is a leader and a replication task has been
replicating the logs to a follower, the logs can't be purged until the
replication task is finished.
- Fix: databendlabs#852
Yup exactly we want to keep the last two snapshots, so being able to specify the log index manually would be helpful if we switch to a time based snapshot triggers.
Originally posted by @kevlu93 in #823 (comment)
The text was updated successfully, but these errors were encountered: