Add flag for validate to repair data in standalone mode

XMLWordPrintableJSON

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

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

              Created:
              Updated:
              Resolved: