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

Support bulkWrite running in multi-statement transactions

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Repl 2023-04-17

      Nothing novel needs to be done here either. Any transaction related states should be set up at the layer above the command invocation on both mongos and mongod. We just need to immediately abort the client transaction once one or more operations fail in a bulkWrite command. Here are the examples of mongod and mongos implicitly aborting transactions upon seeing the first error for existing batched writes.

      Note that on mongod we currently handle this already by calling handleError

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: