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

Add safety check for `multikey` flag and `multikeyPath` values consistency in the local catalog

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Catalog
    • Catalog and Routing

      There is currently no safety check in place when retrieving the multikey field from the catalog. In the `isIndexMultikey()` getter, we do not verify that the multikey flag aligns with the multikeyPath values.

      The objective of this ticket is to ensure that we do not return the multikey field without confirming that if the multikey is set to false, the multikeyPath must be empty. It is important to note that the opposite scenario is acceptable: having multikey set to true without any multikey paths is permissible for historical reasons.

            Assignee:
            Unassigned Unassigned
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: