mongos should not attach write concern to bulkWrite batches sent to shards when in a transaction

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Repl 2023-08-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Transactions do not support per-operation write concern and so we should not add it to the commands we send to shards if in a transaction.

      Equivalent code for insert/update/delete: https://github.com/mongodb/mongo/blob/6888a1472e002d9e1fe741a670261b28e45b2ab7/src/mongo/s/write_ops/batch_write_op.cpp#L634-L645

            Assignee:
            Kaitlin Mahar
            Reporter:
            Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: