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

Add flag for validate to repair data in standalone mode

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2020-08-10, Execution Team 2020-08-24
    • 95

      From the design:

      The CollectionValidation::validate() function will accept a RepairData flag to allow it to fix certain problems that do not require a full index rebuild. This new “repair mode” will be used by startup repair in repairCollections to avoid rebuilding indexes in certain data inconsistency cases (SERVER-49340). 

      This new mode will also be accessible via running the validate command in standalone mode with a new parameter to the validate user command, _

      {repair: true}

      _. This mode is incompatible with _

      {background: true}

      _ and _

      {enforceFastCounts: true}

      _ and requires an X collection lock.

            Assignee:
            shinyee.tan@mongodb.com Shin Yee Tan
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: