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

Write the new commit command on primary for large prepared transactions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.10
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2019-03-11, Repl 2019-03-25

      The new commit format includes a new "prepared" field, even though it doesn't have any functional change.

      {
          "ts": Timestamp(1538534640, 11),
          "t": NumberLong(1),
          "op": "c",
          "ns": "admin.$cmd",
      
          // The new commitTransaction command, for prepared transaction.
          "o": { "commitTransaction": 1, "prepared": true },
      
          "lsid": < lsid > ,
          "txnNumber": NumberLong("1"),
      
          // Pointing to the previous oplog entry in the transaction.
          "prevOpTime": { "ts": Timestamp(1538534640, 10), "t": NumberLong(1) }
      }
      

            Assignee:
            jason.chan@mongodb.com Jason Chan
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: