v0.8.0: Sessions, Causal Consistency & Snapshot Reads
This release brings Sessions, Causal Consistency, and Snapshot Reads (MongoDB 5.0+) specifications.
What's Changed
- Snapshot Reads Support: Added
snapshotandsnapshot_timesession options. Commands in snapshot sessions automatically attach snapshot level read concerns and track server-returnedatClusterTimetimestamps. - Causal Consistency Write Propagation: Updated write commands executed within causally-consistent sessions to propagate
afterClusterTimewhen an operation time exists. - Validation & Safety: Enforced mutual exclusion between
snapshotandcausal_consistencyflags, validatedsnapshot_timeprerequisites, and restricted transactions within snapshot sessions. - Unified Test Runner Extensions: Added dispatcher support for snapshot time entity resolution (
getSnapshotTime), session dirtiness checks, and LSID command history assertions (assertSameLsidOnLastTwoCommands,assertDifferentLsidOnLastTwoCommands). - Spec Compliance: 100% pass rate across the official
sessionsandcausal-consistencytest suites (now with a total of 332/332 tests passing).
Full Changelog: v0.7.0...v0.8.0