Replicated Logs
Log Repair
Repair truncates the conflicting suffix and copies the leader suffix.
Log repair
Repair truncates the follower after the matching prefix and copies the leader suffix. The before row and repair row are both rendered. Note: repaired logs are recomputed, not authored.
Truncate suffix
The repair starts after matchIndex 1. Note: the conflicting suffix is replaced rather than merged.
a simplified leader-based log replication; quorum commit + log repair are exact on these tiny clusters; full Raft safety, leader election (next book), and network partitions/timing are beyond these traces - no product claims.
Copy leader suffix
The repaired follower log has 3 entries. Note: the repair row shows the copied leader suffix.
a simplified leader-based log replication; quorum commit + log repair are exact on these tiny clusters; full Raft safety, leader election (next book), and network partitions/timing are beyond these traces - no product claims.
Summary
Repair makes the follower prefix-consistent with the leader by replacing the conflicting suffix. Note: this is simplified leader-based replication; full Raft safety and leader election are the next book, while partitions and timing are beyond these traces.