[SERVER-41942] Clear partialTxnList when committing a prepared transaction. Created: 26/Jun/19  Updated: 29/Oct/23  Resolved: 11/Jul/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.0-rc3, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Repl 2019-07-15
Participants:

 Description   

When applying oplog entries that were a part of a large transaction, we first add them to partialTxnList and then apply them during the commit. We then clear partialTxnList for the next large transaction.

Currently, we do not clear partialTxnList when committing a prepared transaction. This means that for large prepared transactions, partialTxnList will have entries that were not part of the same transaction.

As a part of this ticket, we should also make sure to test the bug in SERVER-41163 with large transactions. We can use initial_sync_update_missing_doc.js for this.



 Comments   
Comment by Githook User [ 11/Jul/19 ]

Author:

{'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}

Message: SERVER-41942: Clear partialTxnList after committing a prepared transaction during initial sync

(cherry picked from commit a1195adf60e8086219f247be250d8928df8577ce)
Branch: v4.2
https://github.com/mongodb/mongo/commit/48ed9f8ec8d69280eaea06ae27186d4f5f52b72a

Comment by Githook User [ 11/Jul/19 ]

Author:

{'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}

Message: SERVER-41942: Clear partialTxnList after committing a prepared transaction during initial sync
Branch: master
https://github.com/mongodb/mongo/commit/a1195adf60e8086219f247be250d8928df8577ce

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