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 <[email protected]> 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? >
