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

Support validation repair mode with duplicates on unique indexes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Execution Team 2021-12-13, Execution Team 2021-12-27, Execution Team 2022-01-10, Execution Team 2022-01-24, Execution Team 2022-02-07

      Currently when there are duplicate documents in the RecordStore but no matching key in a unique index, validate repair mode is unable to insert the missingIndexEntry and thus unable to repair this in validate repair mode.

      In this scenario, we might want to delete the duplicate document.

      This feature is different from SERVER-49507, which only deals with index rebuilds after salvaging data files.

      Also, remove the TODO here.

            shinyee.tan@mongodb.com Shin Yee Tan
            shinyee.tan@mongodb.com Shin Yee Tan
            0 Vote for this issue
            3 Start watching this issue