Validate multikey indexes in dbCheck

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Xuerui Fa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: