[SERVER-59934] Dropping a View and creating a Collection on same namespace may be replicated out-of-order Created: 14/Sep/21  Updated: 29/Oct/23  Resolved: 29/Sep/21

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

Type: Bug Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Execution Team 2021-10-04
Participants:
Linked BF Score: 12

 Description   

We're seeing the same symptoms that occurred in SERVER-57678 happen for regular views, not just timeseries views. We should generalize the fix so that we're always holding the MODE_X lock when dropping a view so that a concurrent create on the same namespace doesn't get written out of order.



 Comments   
Comment by Githook User [ 29/Oct/21 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-59934 Take a MODE_X collection lock when dropping regular views

(cherry picked from commit 45bc7a2c06d788a2fddc8601450d4a1fb8dbf489)
Branch: v5.0
https://github.com/mongodb/mongo/commit/8ec8ca3f33e5d6daca6eeb6af7465b33eb7f3242

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 [ 29/Sep/21 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-59934 Take a MODE_X collection lock when dropping regular views
Branch: master
https://github.com/mongodb/mongo/commit/45bc7a2c06d788a2fddc8601450d4a1fb8dbf489

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