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

broken indexStats command

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.1
    • Component/s: Index Maintenance
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      test@local(2.7.1-pre-) > db.serverCmdLineOpts()
      {
      	"argv" : [
      		"./mongod",
      		"--dbpath",
      		"/data/dbIdxPatch",
      		"--port",
      		"47017",
      		"--enableExperimentalIndexStatsCmd"
      	],
      	"parsed" : {
      		"enableExperimentalIndexStatsCmd" : true,
      		"net" : {
      			"port" : 47017
      		},
      		"storage" : {
      			"dbPath" : "/data/dbIdxPatch"
      		}
      	},
      	"ok" : 1
      }
      

      I started mongod with enableExperimentalIndexStatsCmd but yet:

      db.idxBuild.getIndexStats({index: "arr.f_1"}, true)
      this command requires starting mongod with --enableExperimentalIndexStatsCmd
      error executing indexStats command: {
      	"ok" : 0,
      	"errmsg" : "no such cmd: indexStats",
      	"code" : 59,
      	"bad cmd" : {
      		"indexStats" : "idxBuild",
      		"index" : "arr.f_1"
      	}
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: