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

Document that sharded transactions always perform some majority writes

    XMLWordPrintableJSON

Details

    Description

      Description

      We document here that sharded transactions are not allowed with writeConcernMajorityJournalDefault:false. I think it's also important to specify that regardless of the user's requested writeConcern, commitTransaction for a sharded transaction must perform some component writes with writeConcern {w: "majority", j: true. If we don't specify this, users may be confused as to why running commitTransaction with a weaker writeConcern doesn't significantly speed up their sharded transactions.

      (Additionally, until SERVER-37364 is complete, there is no behavior difference for weaker writeConcerns, but I don't think we need to document this.)

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 34 weeks, 6 days ago