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

Setting getLastErrorDefaults breaks multi-document transactions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Operating System:
      ALL
    • Backport Requested:
      v4.4

      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

              Assignee:
              backlog-server-repl Backlog - Replication Team
              Reporter:
              shane.harvey Shane Harvey
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: