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

Introduce autocommit: true for bulkWrite on mongod

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Repl 2023-05-01

      To support one-shot transactions, we need to introduce a notion of {autocommit: true} to commit the multi-statement transaction automatically when the command invocation completes. To do that, we will commit instead of stash the transaction when the command with {autocommit: true} succeeds. Technically {autocommit: true} could be attached to any command supported in multi-statement transactions. But we will only allow {autocommit: true} in bulkWrite for now to avoid changes to the semantics of existing commands. Currently, the server assumes that the autocommit field must be false when present (e.g. this and this). So we need to audit the code and make sure consumers of the autocommit field behave correctly when the value is true.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: