[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: |
|
||||
| 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 |
| Comments |
| Comment by Githook User [ 11/Jul/19 ] |
|
Author: {'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}Message: (cherry picked from commit a1195adf60e8086219f247be250d8928df8577ce) |
| Comment by Githook User [ 11/Jul/19 ] |
|
Author: {'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}Message: |