Skip to main content
KBY Technologies Logo
Lexicon
Lexicon

Consistent Cut

Difficulty: Advanced
3 min read

In plain English

Plain definition

A globally-derived snapshot of process states where no recorded state reflects receiving a message whose corresponding send is absent from the snapshot.

A consistent cut is the abstract correctness criterion behind every distributed snapshot mechanism. Given a system of processes communicating exclusively via messages, a cut is a selection of one local state per process, drawn as a jagged line across a space-time diagram of process timelines. The cut is consistent if it never records the receipt of a message without also recording that message’s send. Put another way, the cut respects Lamport’s happens-before relation. An inconsistent cut captures an effect (a received message) without its cause (the corresponding send), producing a global state that could never have actually existed at any real instant.

The practical significance is that consistency of the cut is what makes a derived global state meaningful for reasoning: it guarantees the captured state is reachable from the true initial global state via some valid interleaving of events, and that the real execution can reach some future state from it. Algorithms such as the Chandy-Lamport snapshot protocol exist to construct a consistent cut without pausing the system or requiring synchronized clocks: they use marker messages flushed through FIFO channels so that each process records its state at the moment it first sees a marker (an initiator records its state spontaneously), and records in-flight channel messages that arrive between its own recording and the marker’s arrival on that channel. The marker-based flush is only the technique. The consistent cut is the property it guarantees.

Most of the hard reasoning sits in the edge cases. Non-FIFO channels break the naive marker technique because a data message can overtake its marker, so systems either enforce channel ordering or attach logical timestamps to detect reordering. One snapshot can be initiated by several processes at once; separate concurrent snapshots must carry distinct identifiers so their markers are not confused. In systems with vector clocks or interval tree clocks, a consistent cut can be derived after the fact from causal metadata rather than constructed online. That approach is common in debugging and distributed tracing reconstruction, where a consistent cut is retroactively assembled from causally tagged events to answer “what did the system look like at a valid instant near time T”. Checkpoint/recovery systems rely on the same property: a set of process checkpoints used for coordinated rollback must form a consistent cut, or recovery will resurrect a state where an effect exists without its cause, corrupting invariants that downstream logic assumes hold.

Thinking in consistent cuts turns a global-state question from an operational “how do I pause and read everything” problem into a causal-ordering problem, and that is the right way to reason about snapshots, distributed debugging, and rollback-recovery correctness in systems that never share a global clock.

About this page

Credited to

Dates

Published

Corrections

  • : Corrected during a review of published articles. Details

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

Found this useful? Follow KBY for more like it.

More from KBY that goes with this term.