[SERVER-57928] create_collection.js should use a dedicated database name and avoid dropping the test database Created: 22/Jun/21  Updated: 29/Oct/23  Resolved: 25/Jun/21

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

Type: Improvement Priority: Major - P3
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
Related
is related to SERVER-44139 Allow collection creation inside a mu... Closed
is related to SERVER-44849 Allow createIndexes inside multi-docu... Closed
is related to SERVER-45370 Test scenarios where multiple transac... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Execution Team 2021-06-28
Participants:
Linked BF Score: 115

 Description   

The test (in jstests/core/txns) as currently written makes it work poorly in some test suites, especially when there are other tests in jstests/core. The test drops the test database at the beginning, erasing the state left behind by other tests that share the same database. This issue is also present in create_collections_parallel.js and create_indexes_parallel.js.



 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 [ 22/Jul/21 ]

Author:

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

Message: SERVER-57928 update txns/create_indexes_parallel.js to avoid dropping the test db

(cherry picked from commit 51e25236781f6d0947a27e7432ae17f20317da7b)
Branch: v5.0
https://github.com/mongodb/mongo/commit/0f0b3e9bde55c6a1d92dd35a694a177df8f8df05

Comment by Githook User [ 22/Jul/21 ]

Author:

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

Message: SERVER-57928 update txns/create_indexes.js to avoid dropping the test db

(cherry picked from commit ccf1341fdc5ff795d68eb87165a7991a479ea089)
Branch: v5.0
https://github.com/mongodb/mongo/commit/a2c71818bceea10ac4385763b66eea6aaa15d428

Comment by Githook User [ 22/Jul/21 ]

Author:

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

Message: SERVER-57928 update txns/create_collection_parallel.js to avoid dropping the test db

(cherry picked from commit 80b1d87fb4f19897452e3bcbd2640fae41ae6b43)
Branch: v5.0
https://github.com/mongodb/mongo/commit/d1de600ef329a290a06e83668ba759a28f523842

Comment by Githook User [ 22/Jul/21 ]

Author:

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

Message: SERVER-57928 update txns/create_collection.js to avoid dropping the test db

(cherry picked from commit 8bc57a2d692ce27043922946660bcfa80200d1ac)
Branch: v5.0
https://github.com/mongodb/mongo/commit/b0a2dc6f188fa494e6938127a7f40a51954da04a

Comment by Githook User [ 25/Jun/21 ]

Author:

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

Message: SERVER-57928 update txns/create_indexes_parallel.js to avoid dropping the test db
Branch: master
https://github.com/mongodb/mongo/commit/51e25236781f6d0947a27e7432ae17f20317da7b

Comment by Githook User [ 25/Jun/21 ]

Author:

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

Message: SERVER-57928 update txns/create_indexes.js to avoid dropping the test db
Branch: master
https://github.com/mongodb/mongo/commit/ccf1341fdc5ff795d68eb87165a7991a479ea089

Comment by Githook User [ 25/Jun/21 ]

Author:

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

Message: SERVER-57928 update txns/create_collection_parallel.js to avoid dropping the test db
Branch: master
https://github.com/mongodb/mongo/commit/80b1d87fb4f19897452e3bcbd2640fae41ae6b43

Comment by Githook User [ 24/Jun/21 ]

Author:

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

Message: SERVER-57928 update txns/create_collection.js to avoid dropping the test db
Branch: master
https://github.com/mongodb/mongo/commit/8bc57a2d692ce27043922946660bcfa80200d1ac

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