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

Repair should re-create missing collection data files from the existing metadata

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.1, 4.1.1
    • None
    • Fully Compatible
    • v4.0
    • Storage NYC 2018-07-02

    Description

      When running mongodb with --repair and find that verify returns ENOENT (no such file), we can safely drop the WiredTiger table and re-create it with the same metadata creation string as the original.

      The metadata for the ident can be read in with a "metadata:create" cursor before dropping the table.

      This should also handle the case the when a collection is missing when started with --directoryperdb.

      Attachments

        Activity

          People

            louis.williams@mongodb.com Louis Williams
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: