Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62608

Remove catalog entries of collections not restored

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2022-02-07

    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.

      Attachments

        Activity

          People

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: