[DRIVERS-1798] Add read/write concern options on a session Created: 04/Jun/21  Updated: 31/Mar/22

Status: Backlog
Project: Drivers
Component/s: Sessions
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-2035 Causal Consistency by default Backlog
Driver Changes: Needed

 Description   

For operations in a session to get causal consistency guarantees, readConcern "majority" or writeConcern "majority" must be used.

However, these are only configurable for transactions occurring within the session.
And drivers only require read/write concern be configured at the level of a collection/database/client.

A use-case would be to set read/write concern to "majority" so all operations within a session have all four causal consistency guarantees described in the MongoDB Manual documentation.

This may align with the decision to have causal consistency enabled by default (per SPEC-936). It could make it easier for users to have higher resiliency guarantees by default.


Generated at Thu Feb 08 08:24:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.