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

validate should check consistency of number of index entries

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • Server
    • None

    Description

      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
      }
      

      Attachments

        Activity

          People

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

            Dates

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