You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ratis.apache.org by Tsz Wo Sze <sz...@gmail.com> on 2023/09/01 20:19:32 UTC

Re: Snapshotting ratis itself

Snapshot should not include the raft log.  One reason to take a snapshot is
to purge the old raft log entries.

There are two independent processes (1) appendEntires and (2)
applyTransactions.  Snapshot only blocks applyTransactions.  Committing log
entries is done by counting the majority of appendEntires replies.

No. Snapshot must not change any states.  So, no log entries are written.

Tsz-Wo



On Mon, Aug 28, 2023 at 11:30 AM Asad Awadia <as...@gmail.com> wrote:

> Is there ever a use case of taking a backup of the raft logs itself in the
> onSnapshot method?
>
> Are the commits to the log also blocked? Or only the apply to the
> statemachine?
>
> Does taking a snapshot cause a raft log to get written?
>