[SERVER-41643] Create/drop view should lock system.views collection after view namespace Created: 11/Jun/19  Updated: 29/Oct/23  Resolved: 24/Jun/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.2.0-rc3, 4.3.1

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

Issue Links:
Backports
Depends
Related
related to SERVER-40994 renameCollection should always lock s... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Execution Team 2019-07-01
Participants:
Linked BF Score: 20

 Description   

Similar to SERVER-40994, we should lock system.views collection in the end (after any other collection lock acquisitions). Otherwise deadlock between system.views and the view namespace may happen.



 Comments   
Comment by Githook User [ 02/Jul/19 ]

Author:

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

Message: SERVER-41643 Create/drop view should lock system.views collection after view namespace

(cherry picked from commit 285995323690a3cbd62f6c376751ad4caf1e6b4f)
Branch: v4.2
https://github.com/mongodb/mongo/commit/ca57e96970342e433a82510b5c2a926995c0fc16

Comment by Githook User [ 24/Jun/19 ]

Author:

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

Message: SERVER-41643 Create/drop view should lock system.views collection after view namespace
Branch: master
https://github.com/mongodb/mongo/commit/285995323690a3cbd62f6c376751ad4caf1e6b4f

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