AlgoViz

Committed state, reads and leadership

hard 7 min

A replicated log gives nodes a shared sequence of state changes.

Where it shows up

The same pattern appears across everyday software.

  • An old leader serves an old value

    A recovered former leader responds quickly but returns yesterday’s setting to some clients. Its process is healthy, yet it may have missed a later term and committed writes. Compare term, commit position and the read protocol. A quorum-backed read or a properly specified lease can establish authority, while an explicitly stale read can serve a different product need.

  • Verifying the intervention

    Gate strong reads on the protocol’s freshness condition and test across a leadership change. If freshness was established, compare the entry’s commit and apply positions with the actual snapshot served.