[SERVER-49809] View definition can be lost if the view is created during movePrimary Created: 22/Jul/20  Updated: 29/Oct/23  Resolved: 23/Jul/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.1, 4.7.0

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

Issue Links:
Related
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Sharding 2020-07-27
Participants:

 Description   

View definitions for a database DBNAME are stored in the DBNAME.system.views unsharded collection. Therefore if a view is created during the movePrimary for the DBNAME it can be lost like any other insert to an unsharded collection even if the viewOn collection is sharded.



 Comments   
Comment by Githook User [ 13/Aug/20 ]

Author:

{'name': 'Misha Tyulenev', 'email': 'misha.tyulenev@mongodb.com'}

Message: SERVER-49809 return MovePrimaryInProgress on view create or modify commands

(cherry picked from commit 4e0aa088a20784bf3391745c043e184036a305f8)
Branch: v4.4
https://github.com/mongodb/mongo/commit/2350970e2abdb71ba4246a317af6aa289a70b3c3

Comment by Githook User [ 23/Jul/20 ]

Author:

{'name': 'Misha Tyulenev', 'email': 'misha.tyulenev@mongodb.com'}

Message: SERVER-49809 return MovePrimaryInProgress on view create or modify commands
Branch: master
https://github.com/mongodb/mongo/commit/4e0aa088a20784bf3391745c043e184036a305f8

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