[SERVER-65993] Make internal transaction concurrency workloads create test collection in the setup phase with w: majority Created: 26/Apr/22  Updated: 29/Oct/23  Resolved: 27/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc4, 6.1.0-rc0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Sharding 2022-05-02
Participants:
Linked BF Score: 166

 Description   

The workloads should explicitly create the test collection instead of implicitly creating it when the worker threads insert initial documents in the "init" state since implicit createCollection and index build operations started by those threads can conflict with each other. Additionally, the createCollection command should use writeConcern "majority", otherwise a transaction that starts while the index build is pending would fail with SnapshotUnavailable. 



 Comments   
Comment by Githook User [ 29/Apr/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-65993 Make internal transaction concurrency workloads create test collection in the setup phase with w: majority

(cherry picked from commit dc51c89abfef9f4202f9cb3cbe32674439f7e9f6)
Branch: v6.0
https://github.com/mongodb/mongo/commit/e6b54429def22ac11fe86627b84a4a69cf216aa4

Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-65993 Make internal transaction concurrency workloads create test collection in the setup phase with w: majority
Branch: master
https://github.com/mongodb/mongo/commit/dc51c89abfef9f4202f9cb3cbe32674439f7e9f6

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