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

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.1, 4.1.1
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0
    • Epic Link:
    • Sprint:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: