Skip to main content

dropped_batch_leaves_store_usable

Function dropped_batch_leaves_store_usable 

pub async fn dropped_batch_leaves_store_usable<F: ProjectionFixture>(
    open: impl AsyncFn() -> F,
) -> RuleOutcome
Expand description

A batch dropped bare rolls back and leaves the store usable.

PS-7, and the second half is the rule. “Rolls back” alone certifies a store that has permanently lost its only writer, which is why this rule opens and commits a second batch on the same handle and asserts that second batch’s row is readable.

Rejects: PooledConnectionStore — an adapter whose begin checks out a pooled connection that Drop returns to nothing. A reviewer’s probe already found exactly this: the store answered Busy forever afterwards (spec/SPECIFICATION.md:5264-5276). Two further stores fail it at the second row for unrelated reasons — CheckpointOnlyStore, which applies no rows at all, and UncommittedTransactionStore, which makes nothing durable — and their registry rows say so.

The non-vacuity anchor is the assertion that the second batch’s row is present. A “rolls back” -only rule cannot make it.