Enable Fault Tolerance and Failure Detection 00:00:01 One server misses its heartbeat C stops sending heartbeats. A and B can observe silence but cannot directly see a crash. Trace the separate actions of suspicion, corroborating checks and routing work elsewhere. Every node sends heartbeats, and all are alive. No more beats from C. It could be dead, slow or cut off. The silence passes the limit. C is suspect, and A and B both try to reach it. A and B tell the others that C is down. The coordinator sends requests for C's keys to the other replicas. Tune the detector against normal pauses and network conditions. Declaring a member unavailable for routing is different from proving it lost its data or authorizing a new leader. 00:00:50 A fourth worker keeps a note for the missing owner The intended replicas are A, B and C. While A is unreachable, D temporarily stores a copy annotated for A. Keep the note until the intended owner confirms durable receipt. A client writes a key whose replicas are A, B and C. The coordinator knows that A does not answer. B and C get the write. D is the next healthy node on the ring. It stores the write with the note: for A. A sends heartbeats again. It lacks this write. D sends the write to A and deletes the hint after A has stored it. Hinted handoff can bridge a temporary outage. Its guarantees depend on hint retention, delivery and the store's write semantics, with further repair needed if the hint disappears. 00:01:42 Find one stale block without comparing every record Two replicas disagree on one cold key that nobody reads. Compare their Merkle roots, then follow only the mismatching branches until the differing data block is identified. A and C hold version 3. B holds version 2 of one key, and nobody has read it. The root hashes of A and B differ. H12 is equal, so blocks 1 and 2 are done. H34 differs. H4 is equal. H3 differs: the difference is in block 3. Only block 3 travels from A to B. All three nodes hold version 3. Match the key range, snapshot or agreed comparison interval and hashing scheme. Equal subtrees can be skipped, while differing blocks need the database's reconciliation semantics. 00:02:33 A report spreads from one neighbor to six Only A knows the new membership observation. In each illustrated gossip round, informed peers exchange information with selected neighbors. Count newly informed nodes and notice the redundant contact. A has noticed something. The other five do not know. A exchanges with B. Two nodes know. A meets D, and B meets E. Four nodes know. B meets C, D meets F, and A meets E, who knew already. All six know. Gossip can spread knowledge quickly without a central broadcaster. Propagation is probabilistic and observations may be temporarily inconsistent, so a single round is no guarantee of universal agreement. 00:03:21 A silent process wakes without knowing it was replaced C pauses long enough for the others to change routing. It then resumes with an old view of membership. Predict what protects data if C still believes it may write as leader. C is alive but does nothing, not even sending heartbeats. A and B mark C as down. Requests go elsewhere. C wakes up and continues as if nothing had happened. If it were a leader, its old epoch must be refused. C gets its hints and serves again. Nobody copied its whole data in those seconds. Fence outdated epochs at the resource accepting writes, then catch the returning node up before restoring eligibility. Temporary silence must not grant two writers fresh authority over the same record.