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

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

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

      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@mongodb.com Kaitlin Mahar
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: