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

Investigate deduplicating reporting index inconsistencies in the error and indexDetails fields of validate() output

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney
    • Fully Compatible
    • Execution Team 2024-06-24, Execution Team 2024-07-08, Execution Team 2024-07-22, MorningKaraoke 2024-10-01, BananaDuck - 2024-10-15

      Currently, when we encounter index inconsistencies (for example, having a multikey index on a field that is not actually multikey) we report this both in the `errors` field and the `indexDetails` members of the validate() response object.

      For the multikey example, we add the error message to the IndexValidateResults object for a specific index here. This is then added to the general `errors` array here, and then added to the 'indexDetails' object here

      Reporting these inconsistencies in both places can balloon the size of the validate response object, causing it to hit the 16MB document size limit faster. This ticket would look into reporting these inconsistencies only in the indexDetails object.

            Assignee:
            nic.hollingum@mongodb.com Nic Hollingum
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: