Expand description
Shared deterministic mechanics for the browser and storage simulation harnesses.
Structs§
- Node
Fingerprint - What one node contributes to the cluster fingerprint.
- Stable
Fingerprint - Stop after two timer rounds leave the cluster fingerprint unchanged.
Enums§
- Simulation
Timer - The timer wheel includes a leader heartbeat in addition to core timers.
Traits§
- Partition
Message - The endpoints of one queued message, used to clear messages crossing a simulator partition.
Functions§
- action_
messages - Translate the consensus actions that only send messages.
Noneleaves local log and timer effects to the harness. - append_
epochs - Append one leader epoch per simulated record.
- clear_
timer - Disarm the timer that just fired before applying its event.
- earliest_
timer - Earliest timer, retaining the input node order and timer order on equal deadlines.
- epochs_
to_ replicate - Return the leader suffix a follower log of
follower_lenrecords lacks. - fetch_
response - Answer a leader-side fetch only when data or divergence can advance the follower.
- fingerprint
- A node fingerprint uses the core’s leader watermark when it leads.
- partition_
node - Isolate one node and remove messages already in flight to or from it.
- reachable_
leader - A fetch watchdog can poll again while the node’s leader is reachable.
- reconcile_
timers - Enforce per-role timer ownership, preserving existing leader heartbeats.
- truncate_
epochs - Clamp negative cuts to zero; a cut beyond the log preserves it.
- voter_
set - Static simulator voters have no directory identity or network endpoints.