diff options
author | Randolph Tan <randolph@10gen.com> | 2014-03-18 16:42:03 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-03-18 16:52:26 -0400 |
commit | 3e62600166ba6207295f6dbc5348c4b6043c7ffa (patch) | |
tree | 448eeae36328ef4d4ba273d5003715a7a1070431 | |
parent | dd73cdcea6fcea561f79728a5c9ce0e4acfa6c7c (diff) | |
download | mongo-3e62600166ba6207295f6dbc5348c4b6043c7ffa.tar.gz |
SERVER-13263 Temporarily disable balancer on testshard1.js when not issuing the aggregate command
(cherry picked from commit 8d170f91b67d6e31677668c8c1e9406de8608fb4)
-rw-r--r-- | jstests/aggregation/testshard1.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/aggregation/testshard1.js b/jstests/aggregation/testshard1.js index 523d82ee8e4..2449ca14116 100644 --- a/jstests/aggregation/testshard1.js +++ b/jstests/aggregation/testshard1.js @@ -180,10 +180,12 @@ testSkipLimit([{$limit:10}, {$skip:5}, {$skip: 3}], 10 - 3 - 5); // test sort + limit (using random to pull from both shards) function testSortLimit(limit, direction) { + shardedAggTest.stopBalancer(); // TODO: remove after fixing SERVER-9622 var from_cursor = db.ts1.find({},{random:1, _id:0}) .sort({random: direction}) .limit(limit) .toArray(); + shardedAggTest.startBalancer(); // TODO: remove after fixing SERVER-9622 var from_agg = aggregateOrdered(db.ts1, [{$project: {random:1, _id:0}} ,{$sort: {random: direction}} ,{$limit: limit} @@ -200,9 +202,11 @@ testSortLimit(100, -1); // test $out by copying source collection verbatim to output var outCollection = db.ts1_out; var res = aggregateOrdered(db.ts1, [{$out: outCollection.getName()}]); +shardedAggTest.stopBalancer(); // TODO: remove after fixing SERVER-9622 assert.eq(db.ts1.find().itcount(), outCollection.find().itcount()); assert.eq(db.ts1.find().sort({_id:1}).toArray(), outCollection.find().sort({_id:1}).toArray()); +shardedAggTest.startBalancer(); // TODO: remove after fixing SERVER-9622 // Make sure we error out if $out collection is sharded assertErrorCode(outCollection, [{$out: db.ts1.getName()}], 17017); |