[SERVER-62608] Remove catalog entries of collections not restored Created: 13/Jan/22  Updated: 29/Oct/23  Resolved: 02/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: New Feature Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-02-07
Participants:

 Description   

Once the catalog has loaded, we can iterate over the _mdb_catalog.wt table to determine which collection is missing its data files. The collections that fit this description will undergo a collection drop. The call to WT_SESSION::drop() will be skipped as the data files are not known to WiredTiger. This will also remove the collections entry from the sizeStorer.wt table. Any views on the dropped collection will also need to be removed from the system.views collection for the given database. This procedure mimics the collections and their indexes being dropped at the checkpointTimestamp.



 Comments   
Comment by Githook User [ 02/Feb/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-62608 Remove catalog entries of collections not restored
Branch: master
https://github.com/mongodb/mongo/commit/00d0c713618fce418d28f2684a02d5a4be645276

Comment by Githook User [ 02/Feb/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-62608 Disallow using --restore when using --repair or --queryableBackupMode
Branch: master
https://github.com/mongodb/mongo/commit/a825464a9fc7427588359639ac80af363628eb19

Comment by Githook User [ 02/Feb/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-62608 Add 'forRestore' option to StorageEngineOptions
Branch: master
https://github.com/mongodb/mongo/commit/bd7656e4451b3a0aa19a6616e78fd9a6ae5021e3

Comment by Githook User [ 02/Feb/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-62608 Remove catalog entries of collections not restored
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1be2f66609224df1e00214e5049d8e8fe8758342

Comment by Githook User [ 02/Feb/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-62608 Add 'forRestore' option to StorageEngineOptions
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/01ee5f3bec6d2073152aaf5f75f1359fc295e142

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