Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8968

validate should check consistency of number of index entries

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      SERVER-19513 uncovered a missing check in the validate command. While the command outputs enough information to diagnose an inconsistency in the indexes, it does not mark the collection as invalid and does not report an error.

      > t.validate({full:false})
      {
      	"ns" : "test.cappedb",
      	"nrecords" : 5,
      	"nIndexes" : 1,
      	"keysPerIndex" : {
      		"test.cappedb.$_id_" : 10
      	},
      	"valid" : true,
      	"errors" : [ ],
      	"warning" : "Some checks omitted for speed. use {full:true} option to do more thorough scan.",
      	"ok" : 1
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              1 year, 17 weeks, 2 days ago