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

Support bulkWrite running in multi-statement transactions

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Replication
    • Repl 2023-04-17

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: