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

discrepancy on mapReduce and mapreduce command

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: MapReduce
    • Labels:

      Using the mongo shell, mongod accepts as command both mapreduce and mapReduce

      > db.runCommand(
                        {
                          mapreduce: 'orders',
      	           ...
                        } 
                    )
      {
      	"result" : "testName",
      	"timeMillis" : 36,
      	"counts" : {
      		"input" : 0,
      		"emit" : 0,
      		"reduce" : 0,
      		"output" : 0
      	},
      	"ok" : 1
      }
      
      mongod> db.runCommand(
                      {
                        mapReduce: 'orders',
                       ...
                      }
                    )
      {
      	"result" : "testName",
      	"timeMillis" : 40,
      	"counts" : {
      		"input" : 0,
      		"emit" : 0,
      		"reduce" : 0,
      		"output" : 0
      	},
      	"ok" : 1
      }
      
      

      However, using the mongo shell, mongos only accepts the command mapreduce and will error out with mapReduce.

      mongos> db.runCommand(
                      {
                        mapReduce: 'orders',
                        ...
                      }
                    )
      { "ok" : 0, "errmsg" : "no such cmd: mapReduce" }
      
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: