diff options
author | agirbal <antoine@10gen.com> | 2011-08-29 23:02:47 -0700 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2011-08-29 23:14:23 -0700 |
commit | f3bd113e0df642703fda8cc9fe7f6cdf6503e5e8 (patch) | |
tree | e70214227ba21c4996e409dee09c3ee6d7f1f244 /jstests/sharding/bigMapReduce.js | |
parent | bc8b2ef3cc55a18274920ededbba6e18e99626e4 (diff) | |
download | mongo-f3bd113e0df642703fda8cc9fe7f6cdf6503e5e8.tar.gz |
SERVER-3529: Sharded map reduce using merge stalls recreating indexes on the output collection
Diffstat (limited to 'jstests/sharding/bigMapReduce.js')
-rw-r--r-- | jstests/sharding/bigMapReduce.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/sharding/bigMapReduce.js b/jstests/sharding/bigMapReduce.js index 3cc1d66405a..b4a293b1d58 100644 --- a/jstests/sharding/bigMapReduce.js +++ b/jstests/sharding/bigMapReduce.js @@ -67,6 +67,10 @@ for (iter = 0; iter < 5; iter++) { print("checking result field"); assert.eq(res.result.collection, outCollStr, "Wrong collection " + res.result.collection); assert.eq(res.result.db, outDbStr, "Wrong db " + res.result.db); + + // make sure final collection has index on _id + assert(outDb.system.indexes.count({ns: outDbStr + "." + outCollStr, key: {_id: 1}}) > 0, "No index on _id") + assert( gotAGoodOne , "no good for out db" ) } assert( gotAGoodOne , "no good for out db" ) |