Skip to content

v0.8.0: Sessions, Causal Consistency & Snapshot Reads

Choose a tag to compare

@paulocoghi paulocoghi released this 22 Jul 20:14
· 44 commits to master since this release

This release brings Sessions, Causal Consistency, and Snapshot Reads (MongoDB 5.0+) specifications.

What's Changed

  • Snapshot Reads Support: Added snapshot and snapshot_time session options. Commands in snapshot sessions automatically attach snapshot level read concerns and track server-returned atClusterTime timestamps.
  • Causal Consistency Write Propagation: Updated write commands executed within causally-consistent sessions to propagate afterClusterTime when an operation time exists.
  • Validation & Safety: Enforced mutual exclusion between snapshot and causal_consistency flags, validated snapshot_time prerequisites, 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 sessions and causal-consistency test suites (now with a total of 332/332 tests passing).

Full Changelog: v0.7.0...v0.8.0