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

Validate should check for duplicate keys in unique indexes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.6, 4.3.5
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.2
    • Execution Team 2020-03-09

      When "validate" checks index inconsistencies, it asserts that keys are in increasing order. It should also perform checks to detect duplicate keys on unique indexes.

      Additionally, all KeyStrings are in the format (Key, RecordID). If there are two KeyStrings with duplicate Keys, each will have unique RecordID, and therefore never compare equally. This should be a consideration in the implementation.

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

              Created:
              Updated:
              Resolved: