Skip to main content

Module crash

Module crash 

Source
Expand description

Crash injection at identity / effect / durable-receipt boundaries (SVC-01.15).

The crash model is a Copy in-memory CrashLog of stages, not an OS process kill and not CORE-03 WAL torn-write. disk_backend_crash_injected is therefore false; this library does not claim CORE-03 disk durability.

Advertised durability is only the ReceiptClass actually achieved by receipts::acknowledge. DeliveryStage::TransportAck is never ReceiptClass::DurableReceipt. Packages remain open.

Structs§

CrashHarness
Live ReceiptTable plus a parallel Copy log used to restore after a crash.
CrashLog
Copy snapshot of bound identities, local-effect bits, and durable receipts.

Enums§

CrashBoundary
Rolled-back stage: later stages never happened after CrashHarness::restore.

Functions§

advertised_durability
Advertised class is the class receipts::acknowledge actually returns.
at_most_once_local_effect
Local effect apply_count saturates at 1 across crash-restore retries.
disk_backend_crash_injected
Not CORE-03.13 WAL torn-write. Disk durability is not claimed here.