[SERVER-39520] Only use collection MODE_X locks for collection drops Created: 11/Feb/19  Updated: 29/Oct/23  Resolved: 26/Apr/19

Status: Closed
Project: Core Server
Component/s: Catalog, Index Maintenance, Storage
Affects Version/s: None
Fix Version/s: 4.1.11

Type: Improvement Priority: Major - P3
Reporter: Geert Bosch Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-37988 recover locks on step up at the begin... Closed
is depended on by SERVER-39518 Only use collection MODE_X locks for ... Closed
Duplicate
is duplicated by SERVER-38140 Only acquire a Database IX lock for r... Closed
Related
related to SERVER-40971 Fix the check of _resolvedNss in Auto... Closed
related to SERVER-41426 StorageInterface's dropCollection sho... Closed
Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-04-22, Storage NYC 2019-05-06
Participants:
Linked BF Score: 10
Story Points: 13

 Description   

Ensure that no places rely on database intent locks to ensure a Collection pointer renames valid.
Check that collection drop doesn't block on open transactions involving other collections in the same database.



 Comments   
Comment by Githook User [ 26/Apr/19 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-39520 Use database IX lock for dropCollection
Branch: master
https://github.com/mongodb/mongo/commit/fa23ce3476904d41f981a677aa4aba55deec4791

Comment by Githook User [ 25/Apr/19 ]

Author:

{'email': 'justin.seyster@mongodb.com', 'name': 'Justin Seyster', 'username': 'jseyster'}

Message: Revert "SERVER-39520 Use database IX lock for dropCollection"

This reverts commit 3a8c33cd95abaa7455b2c01726bdbf413cc938e5.
Branch: master
https://github.com/mongodb/mongo/commit/bf40065c01769683000310fedcd4b8c729c4fdb2

Comment by Githook User [ 25/Apr/19 ]

Author:

{'email': 'xiangyu.yao@mongodb.com', 'name': 'Xiangyu Yao', 'username': 'xy24'}

Message: SERVER-39520 Use database IX lock for dropCollection
Branch: master
https://github.com/mongodb/mongo/commit/3a8c33cd95abaa7455b2c01726bdbf413cc938e5

Comment by Githook User [ 25/Apr/19 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: Revert "SERVER-39520 Use database IX lock for dropCollection"

This reverts commit fdc3712e4cb89c23451061b4c927a78340269d89.
Branch: master
https://github.com/mongodb/mongo/commit/62aa69d685e1b6cde2fd3ab826cf12d1f20221fd

Comment by Githook User [ 25/Apr/19 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-39520 Use database IX lock for dropCollection
Branch: master
https://github.com/mongodb/mongo/commit/fdc3712e4cb89c23451061b4c927a78340269d89

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