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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Damian Wasilewicz
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: