Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54896

Setting getLastErrorDefaults breaks multi-document transactions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.7
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Repl 2021-06-14

    Description

      Reported here: https://developer.mongodb.com/community/forums/t/writeconcern-is-not-allowed-within-a-multi-statement-transaction/16838/2

      Setting getLastErrorDefaults in the replica set config will break write operations in multi-document transactions. Each transactional write will fail with:

      {'ok': 0.0, 'errmsg': 'writeConcern is not allowed within a multi-statement transaction', 'code': 72, 'codeName': 'InvalidOptions'}
      

      The setDefaultRWConcern command does not have this problem.

      Attachments

        Issue Links

          Activity

            People

              huayu.ouyang@mongodb.com Huayu Ouyang
              shane.harvey@mongodb.com Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: