-
Type:
Bug
-
Resolution: Done
-
Priority:
Critical - P2
-
Affects Version/s: None
-
Component/s: Sharding
-
None
-
Environment:mongos built from git clone on 2010/1/7
$ uname -a
Linux toolbox 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The following mapReduce runs successfully on a smaller collection in the same sharded db or on the same collection but on a non-sharded DB.
--------------------------------------------------------------------------------
> $mapv = function ()
{ emit(this.v, 1); }function () {
emit(this.v, 1);
}
> $reducev = function ($vis_id, $counts) { var $count = 0; $counts.forEach(function ($c) {$count += $c;}); return $count; }
function ($vis_id, $counts) {
var $count = 0;
$counts.forEach(function ($c) {$count += $c;});
return $count;
}
> $resv = db.vis1.mapReduce( $mapv, $reducev, { query :
} );
Fri Jan 8 12:54:08 JS Error: uncaught exception: map reduce failed: final reduce failed: