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

Handle multikey indexes in missing index keys check

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Repl 2023-11-27

      The missing index keys check uses findLoc to retrieve the record ID of a keystring. findLoc returns the RecordId of the first key whose prefix matches the keystring, so we may overlook a missing index key for fields that have identical values. 

      To check for this, we can verify that the length of the expected index keys is equal to the number of unique keystrings we retrieve

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            aiden.szeto@mongodb.com Aiden Szeto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: