Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3827

Investigate changes in SERVER-103519: Ensure update and bulkWrite commands return WCE in sharded cluster case

    • Type: Icon: Investigation Investigation
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Tools and Replicator
    • 2

      Original Downstream Change Summary

      update and bulkWrite command responses can now contain a writeConcernError field in more cases than before.
      The writeConcernError field in the response is not new and its format is not changed by this PR. However, previously the writeConcernError field was not returned in some cases in which it is justified.
      These cases were limited to update/bulkWrite queries on sharded collections that did not use the shard key. Here, if one of the shards returned a writeConcernError *and* another error happened (e.g. DocumentValidationFailed), then it was possible that the writeConcernError field was not returned.

      Description of Linked Ticket

      When enabling some tests that were previously commented out with a TODO SERVER-98461 comment above them, I found that some commands update / bulkWrite do not return the writeConcernError s as expected by the test.

      These test errors are not related to findAndModify (and thus SERVER-98461), so we did not enable the failing assertions as part of SERVER-98461. But we should definitely follow this up and make sure that update / bulkWrite always return writeConcernError s as expected.

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: