[SERVER-44405] Use MODE_IX lock for implicit collection creation with createIndexes Created: 04/Nov/19  Updated: 29/Oct/23  Resolved: 10/Dec/19

Status: Closed
Project: Core Server
Component/s: Catalog, Concurrency
Affects Version/s: None
Fix Version/s: 4.3.3

Type: New Feature Priority: Major - P3
Reporter: Geert Bosch Assignee: Maria van Keulen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-44849 Allow createIndexes inside multi-docu... Closed
Duplicate
is duplicated by SERVER-40952 Release the DB X lock in createIndexe... Closed
Related
related to SERVER-49415 create_new_indexes_with_conflict.js h... Closed
related to SERVER-49837 add test for createIndexes command to... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-12-02, Execution Team 2019-12-16
Participants:
Linked BF Score: 22

 Description   

After SERVER-43859, index creation that necessitates implicit collection creation should only require MODE_IX locks. This ticket should remove any remaining acquisition of locks in this code path other than those. In particular, createIndexes::getOrCreateDatabase should go away.
Ideally, implicit collection creation via index creation can comprise a single oplog entry and be treated similarly to explicit collection creation with indexes attached.



 Comments   
Comment by Githook User [ 10/Dec/19 ]

Author:

{'email': 'maria.vankeulen@mongodb.com', 'name': 'Maria van Keulen', 'username': 'mvankeulen94'}

Message: SERVER-44405 Use intent locks for collection creation via createIndexes
Branch: master
https://github.com/mongodb/mongo/commit/3c34a243c0c94f4671f5f987a0857fe923d3ef0d

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