summaryrefslogtreecommitdiff
path: root/jstests/sharding/features2.js
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-07-12 14:29:32 -0400
committerMathias Stearn <mathias@10gen.com>2010-07-12 15:57:37 -0400
commitbfb750b83e00afe7edf0abead1b5c0f932930b11 (patch)
tree2fe7432b53c99f407e31a9f2409d0f3fe7cf9698 /jstests/sharding/features2.js
parent4676c5ac07fe44ae985cfd7fbb0c68c0f90f5f9f (diff)
downloadmongo-bfb750b83e00afe7edf0abead1b5c0f932930b11.tar.gz
Failing test for sharded MR
Diffstat (limited to 'jstests/sharding/features2.js')
-rw-r--r--jstests/sharding/features2.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/sharding/features2.js b/jstests/sharding/features2.js
index 11b859d9b26..f9e2614619f 100644
--- a/jstests/sharding/features2.js
+++ b/jstests/sharding/features2.js
@@ -91,8 +91,12 @@ r = function( key , values ){
};
doMR = function( n ){
+ print(n);
+
var res = db.mr.mapReduce( m , r );
printjson( res );
+ assert.eq( new NumberLong(4) , res.counts.input , "MR T0 " + n );
+
var x = db[res.result];
assert.eq( 3 , x.find().count() , "MR T1 " + n );
@@ -114,6 +118,12 @@ assert.eq( 2 , s.onNumShards( "mr" ) , "E1" );
doMR( "after" );
+s.adminCommand({split:'test.mr' , middle:{x:3}} );
+s.adminCommand({split:'test.mr' , middle:{x:4}} );
+s.adminCommand({movechunk:'test.mr', find:{x:3}, to: s.getServer('test').name } );
+
+doMR( "after extra split" );
+
// count
db.countaa.save({"regex" : /foo/i})