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

Investigate changes in SERVER-80363: server default writeConcern is not honored when wtimeout is set

    • 1

      Original Downstream Change Summary
      • Explicitly documenting that missing 'w' field from write concern object will be filled with default write concern.
      • 'w' field is not optional while setting default write concern using setDefaultRWConcern command

        Description of Linked Ticket

        Sending wtimeout:x without specifying w value causes the server to use w:1, wtimeout:x instead of combining wtimeout with server default (which should be majority in 5.0+).

      Reproduced with Java driver and mongo shell against 6.0. In the logs it indicates it received only wtimeout:xxx for writeConcern but it indicates it uses w:1 with passed wtimeout and claims it's provided by client.

            Assignee:
            lauren.tran@mongodb.com Lauren Tran
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

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