The Raft consensus implementation currently accumulates logs indefinitely, causing memory usage to grow…
The Raft consensus implementation currently accumulates logs indefinitely, causing memory usage to grow…: a task in LegoFlow-SWE (Harbor dataset). The current behavior is that every log entry is retained forever, which eventually exhausts memory. The fix should introduce snapshotting so that…
The task
The current behavior is that every log entry is retained forever, which eventually exhausts memory. The fix should introduce snapshotting so that leaders can compact their logs up to a certain index, capturing the state machine state at that point. A `Snapshot` should contain the `last_included_index` (the index of…
Part of Lego-X/LegoFlow-SWE.