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

validate should check consistency of number of index entries

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Do
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                4 weeks, 3 days ago