[SERVER-11003] discrepancy on mapReduce and mapreduce command Created: 02/Oct/13  Updated: 10/Dec/14  Resolved: 22/Oct/13

Status: Closed
Project: Core Server
Component/s: MapReduce
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Kay Kim (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-5588 mapReduce and eval not recognized by ... Closed
Related
related to DOCS-2015 Comment on: "manual/reference/command... Closed
Participants:

 Description   

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" }
 


Generated at Thu Feb 08 03:24:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.