[SERVER-49521] fix tests in core/txn to use write concern "majority" for createIndexes commands run before starting transactions Created: 15/Jul/20  Updated: 29/Oct/23  Resolved: 21/Jul/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.4.1, 4.7.0, 4.2.17

Type: Bug Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-45421 Fix transactions_block_ddl.js to use ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2
Sprint: Execution Team 2020-07-27
Participants:
Linked BF Score: 36

 Description   

There are a few tests in jstests/core/txns that may fail with a SnapshotUnavailable error because these tests create an index with a local write concern before running an local read concern transaction on the same collection.

A similar issue was fixed in SERVER-45421.

Some of the tests affected include:



 Comments   
Comment by Githook User [ 09/Sep/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-49521 fix writeConcern for non-txn createIndexes commands in core/txns tests

(cherry picked from commit 2a4a2def40803f7dbdfa3ec21f0c178a5a16e259)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5b6c64a1d0ee28ad04556cab8743ef9d73c8871a

Comment by Githook User [ 04/Aug/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-49521 fix writeConcern for non-txn createIndexes commands in core/txns tests

(cherry picked from commit 2a4a2def40803f7dbdfa3ec21f0c178a5a16e259)
Branch: v4.4
https://github.com/mongodb/mongo/commit/1c0c9cec52742ace810553702e0d02e5eaf52d27

Comment by Githook User [ 17/Jul/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-49521 fix writeConcern for non-txn createIndexes commands in core/txns tests
Branch: master
https://github.com/mongodb/mongo/commit/2a4a2def40803f7dbdfa3ec21f0c178a5a16e259

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