[SERVER-72673] Investigate if it's ok to ignore errors on reload views for a database from the system.views collection. Created: 10/Jan/23  Updated: 29/Oct/23  Resolved: 01/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Suganthi Mani Assignee: Dan Larkin-York
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-74313 Prevent "invalid view definition" err... Backlog
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-03-06
Participants:

 Description   

This came out of SERVER-66146 PR's discussion. SERVER-66146 makes changes to CollectionCatalog::_replaceViewsForDatabase transactional. Even before SERVER-66146, we ignore errors on reload views for a database from the system.views collection. Additionally, for such error cases, We also clear/reset the views for that database from CollectionCatalog::_replaceViewsForDatabase map. This means your previous in-memory view state for that database is erased.



 Comments   
Comment by Githook User [ 01/Mar/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-72673 Log ViewsForDatabase::reload status on error
Branch: master
https://github.com/mongodb/mongo/commit/27510d5814fc1c75549846a45b9c31c0703e9830

Generated at Thu Feb 08 06:22:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.