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

Validate should check for duplicate keys in unique indexes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.6, 4.3.5
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Execution Team 2020-03-09

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: