Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-1798

Add read/write concern options on a session

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: Sessions
    • None
    • Needed

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: