[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: |
|
||||
| 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: (cherry picked from commit 4e0aa088a20784bf3391745c043e184036a305f8) |
| Comment by Githook User [ 23/Jul/20 ] |
|
Author: {'name': 'Misha Tyulenev', 'email': 'misha.tyulenev@mongodb.com'}Message: |