[SERVER-40839] Add tests for empty unprepared transactions Created: 25/Apr/19  Updated: 29/Oct/23  Resolved: 29/Apr/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.10, 4.1.11

Type: Task Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: prepare_testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-40885 Disallow running commitTransaction/ab... Closed
Related
is related to SERVER-40533 Do TODO against SERVER-35787 Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2019-05-06
Participants:

 Description   

Add a test case (similar to this) for single replica set transactions to test:
1. commitTransaction run as the first command.
2. abortTransaction run as the first command.
3. read only
4. noop writes



 Comments   
Comment by Githook User [ 06/May/19 ]

Author:

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

Message: SERVER-40839: Add tests for empty unprepared transactions
Branch: v4.0
https://github.com/mongodb/mongo/commit/da1c5de6be5ef90b127dfbdfe5473354bcf7cb7e

Comment by Githook User [ 29/Apr/19 ]

Author:

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

Message: SERVER-40839: Add tests for empty unprepared transactions
Branch: master
https://github.com/mongodb/mongo/commit/a7b6ea4c7c51069eb85b789d078210ec2852e5e0

Comment by Judah Schvimer [ 25/Apr/19 ]

I'm putting this in the prepare epic to justify the assertion in SERVER-40533 around prepareTransaction being consistent in its behavior. It should be backported though since this was 4.0 behavior.

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