Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11944

Docs for SERVER-36240: Make transactions on mongos use snapshot level readConcern if no level was provided

      ----------------------------

      Original Description

      Description:

      I'm not sure we need to document this, since we'll definitely revisit readConcern for sharded transactions later this release as we add support for more readConcern levels, but putting "Needed" just in case. This ticket explicitly disallowed starting a sharded transaction with any readConcern level other than "snapshot" (so local and majority are rejected, unlike on mongod in 4.0). If a user provides no readConcern level when starting a transaction though, mongos will use snapshot as the default.

      Engineering Ticket Description:

      If the first statement in a transaction does not specify snapshot readConcern, mongod will implicitly upconvert it to snapshot. Mongos currently does not have this behavior, and because many core/txns tests rely on this, either mongos will need to upconvert readConcerns to snapshot as well (until we support transactions with other readConcern levels) or the tests need to be updated to explicitly choose snapshot readConcern.

      ----------------------------

      Description

      Scope of changes (files that need work and how much)

      Impact to other docs outside of this product

      MVP (work and date?)

      Resources (e.g. Scope Docs, Invision)

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 12 weeks, 2 days ago