[SERVER-54835] Use w:majority for transactions_profiling.js pre-transaction inserts Created: 26/Feb/21  Updated: 29/Oct/23  Resolved: 01/Mar/21

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

Type: Bug Priority: Major - P3
Reporter: James Wahlin Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 20

 Description   

We should consolidate the following block into a single write operation and execute at w:majority write concern: https://github.com/mongodb/mongo/blob/9b5abca8dcb53f165a8df60a4faaad1586e1be04/jstests/core/txns/transactions_profiling.js#L23-L32

Otherwise, it is possible that the transaction we open on line 35 will choose a point of time that does not reflect all writes.



 Comments   
Comment by Githook User [ 28/Feb/21 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: SERVER-54835 Use w:majority for transactions_profiling.js pre-transaction inserts
Branch: master
https://github.com/mongodb/mongo/commit/f4054ff40c1c8309eefdbc87e84e8e8403e51281

Generated at Thu Feb 08 05:34:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.