grafeo
grafeo copied to clipboard
Check transaction isolation with randomized invariant tests
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 andAsOfViewreaders 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.