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

      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:
            Unassigned Unassigned
            Reporter:
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: