[SERVER-57294] Use {w: majority} when creating a collection right before starting transaction in jstests Created: 28/May/21  Updated: 29/Oct/23  Resolved: 01/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Huayu Ouyang
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
Sprint: Repl 2021-06-14
Participants:
Linked BF Score: 162

 Description   

Similar to SERVER-55753 and SERVER-56964, we should use w: majority when creating a collection before starting a transaction to avoid a SnapshotUnavailable error.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-57294 Use

{w: majority}

when creating a collection right before starting transaction in jstests

(cherry picked from commit 42c5d1c871b3760fe0ad4024706b0ed74a71ec22)
Branch: v5.0
https://github.com/mongodb/mongo/commit/8a805ec90ec04b164ef505bb726486c6b83ddb63

Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-57294 Use

{w: majority}

when creating a collection right before starting transaction in jstests
Branch: master
https://github.com/mongodb/mongo/commit/42c5d1c871b3760fe0ad4024706b0ed74a71ec22

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