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

Enhance the index validation code to output details on what is wrong

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Storage Execution
    • 0

      Currently, the index validation code only mentions that a corrupt index has too many or too few index entries. But the code has knowledge of which documents are missing index entries, which index entries are missing documents, and which index entries are incorrectly referencing the same document. It would be helpful to display this information when the validation fails.
      Currently, for documents that are unindexed for example, all that is displayed is:

      "indexDetails" : {
       		"db182.coll182.$_id_" : {
       			"valid" : false
       		}
      

      (It doesn't even mention explicitly why the index is invalid: too many, or too few entries)

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: