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

XMLWordPrintableJSON

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

      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
              Reporter:
              Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: