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

Improve log messaging around particular indexes having missing/extra index entries

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Validate
    • None
    • Storage Execution

      Currently, in the second phase of validation, if we hit the 1MB memory limit while we are going through all of the missing and extra index entries, we make sure to mark an index as invalid and add a message saying "

      color: Color value is invalid

      Index with name '" << indexName << "' has inconsistencies."

      We do this for extra index entries here and for missing index entries here.
      Therefore, in a scenario where we have two indexes A,B on a collection and we do not have the memory to list out their respective extra/missing index entries, from the validate output we can conclude that they both may have had missing and/or extra index entries.

      color: Color value is invalid

      From the linked HELP ticket, it looks like there are some cases where it would be helpful to be able to conclude with certainty whether an index had just missing index entries, just extra index entries, or both.

      color: Color value is invalid

      This ticket would add some log in roughly the spots linked above that would print out "Index with name {indexName} has missing index entries" and "Index with name {indexName} has extra index entries", or something along those lines

            Assignee:
            Unassigned Unassigned
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: