grafeo icon indicating copy to clipboard operation
grafeo copied to clipboard

Check transaction isolation with randomized invariant tests

Open StevenBtw opened this issue 4 weeks ago • 0 comments

Nothing randomized checks transaction isolation. The tests check each mechanism (undo log, version chain, write set), not the guarantees they add up to, and nine concurrency stress tests are ignored. Split from #672, which ships power-loss and decoder testing in 0.6.2.

What should happen

  • Bank test: random transfers between accounts in transactions, with readers checking that the total never changes, while checkpoints, compact(), backups and AsOfView readers run.
  • History check: record every read and write of randomized list-append transactions and check the history for the anomalies G0, G1a, G1b, G1c and lost updates under snapshot isolation.
  • Long-lived reader: a reader held open across many commits, checkpoints and a backup sees one state throughout and does not slow commits.

Seeded and short on every pull request; long runs nightly, with the ignored stress tests moved into the nightly job.

Done when

The three run in CI with no open problems: short and seeded on every push, long in the nightly workflow #672 adds. Every anomaly found is filed as a bug with its seed.

Affected profiles: all.

StevenBtw avatar Nov 07 '26 11:11 StevenBtw