[SERVER-39442] Write the new commit command on primary for large prepared transactions Created: 08/Feb/19  Updated: 29/Oct/23  Resolved: 14/Mar/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.1.10

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Gantt Dependency
has to be done before SERVER-39790 Reconstruct prepared transactions fro... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2019-03-11, Repl 2019-03-25
Participants:

 Description   

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) }
}



 Comments   
Comment by Githook User [ 14/Mar/19 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@10gen.com'}

Message: SERVER-39442 Write the new commit command on primary for large prepared transactions
Branch: master
https://github.com/mongodb/mongo/commit/1de61831b1f1f1e780fb7fdd14e10e34a1c5cab9

Generated at Thu Feb 08 04:52:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.