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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.1, 4.1.1
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • v4.0
    • Storage NYC 2018-07-02

      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.

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

              Created:
              Updated:
              Resolved: