Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
2.4.8, 2.6.4
-
None
-
ALL
Description
We fail if the out option does not have the type of out in the first position:
> db.foo.mapReduce(map2,red2,{out:{replace:"shTest",db:"newdb", sharded:true}})
|
2014-08-25T11:22:26.173-0400 map reduce failed:{
|
"code" : 13297,
|
"ok" : 0,
|
"errmsg" : "exception: error creating initial database config information :: caused by :: can't have 2 databases that just differ on case have: newDB want to add: newdb"
|
} at src/mongo/shell/collection.js:1224
|
> db.foo.mapReduce(map2,red2,{out:{replace:"shTest",db:"newDB", sharded:true}})
|
// works
|
That was 2.4.8
In 2.6 it fails instead with:
> db.foo.mapReduce(map2,red2,{out:{db:"newDB", replace:"shTest",sharded:true}})
|
2014-08-25T12:06:26.098-0400 map reduce failed:{
|
"ok" : 0,
|
"errmsg" : "MR parallel processing failed: { ok: 0.0, errmsg: \"ns doesn't exist\" }"
|
} at src/mongo/shell/collection.js:1224
|
Attachments
Issue Links
- duplicates
-
SERVER-5378 Position of parameters within out {} object shouldn't matter
-
- Closed
-