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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney
    • Execution Team 2024-06-24, Execution Team 2024-07-08, Execution Team 2024-07-22

      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:
            Unassigned Unassigned
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: