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

Validate multikey indexes in dbCheck

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Repl 2024-07-08, Repl 2024-07-22, Repl 2024-08-05, Repl 2024-08-19, Repl 2024-09-02, Repl 2024-09-16, Repl 2024-09-30

      During the validation process for missing keys, we should implement two additional checks:

      If the document indicates that the index should be marked as multi-key (shouldMarkIndexAsMultikey), but the index is not a multi-key index (isMultikey), we should generate an error.
      If the index is marked as multi-key, but the multi-key paths (getMultikeyPaths) do not cover (covers) the record key, we should generate an error.

      For checking extra keys, no further modifications are necessary as it should function as designed.

      Additionally, we will add a test to ensure it is working as expected.

            Assignee:
            evelyn.wu@mongodb.com Evelyn Wu
            Reporter:
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: