Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Lifecycle conformance (opt-in): close โ†’ reopen must preserve events, versions, and the $all position watermark. In-memory adapters have nothing to reopen and skip this module.

Functionsยง

check_reopen_conflict_state_intact
Optimistic-concurrency state survives reopen: a stale expectation still conflicts against the persisted head.
check_reopen_preserves_events
Everything written before close reads back identically after reopen.
check_reopen_preserves_position_watermark
The $all position watermark survives reopen: a post-reopen append lands strictly after every pre-close position (a reset counter would violate resume and corrupt projections).
check_reopen_subscription_catches_up
A subscription opened after reopen catches up over the pre-close backlog.