diff options
author | Ian Whalen <ian.whalen@gmail.com> | 2016-07-27 14:07:59 -0400 |
---|---|---|
committer | Ian Whalen <ian.whalen@gmail.com> | 2016-07-27 14:07:59 -0400 |
commit | 1c1bf24edf54e41e541cf91a06b38d2056400179 (patch) | |
tree | 9629e1046faff0b9b093688a70d6a834c8b3efb8 /jstests/sharding/addshard5.js | |
parent | b0be62ef611373f426af8be77dd3af4457598a20 (diff) | |
download | mongo-1c1bf24edf54e41e541cf91a06b38d2056400179.tar.gz |
Revert "SERVER-24856 Make manual moveChunk requests go through the balancer on CSRS primary"
This reverts commit 22eff747e1e2408cb30f286751c47965e909c5b1.
Diffstat (limited to 'jstests/sharding/addshard5.js')
-rw-r--r-- | jstests/sharding/addshard5.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/sharding/addshard5.js b/jstests/sharding/addshard5.js index 259e1041aba..c420c90de51 100644 --- a/jstests/sharding/addshard5.js +++ b/jstests/sharding/addshard5.js @@ -1,6 +1,8 @@ // Tests that dropping and re-adding a shard with the same name to a cluster doesn't mess up // migrations + (function() { + 'use strict'; var st = new ShardingTest({shards: 2, mongos: 1}); @@ -42,6 +44,9 @@ jsTest.log('Shard was dropped and re-added with same name...'); st.printShardingStatus(); + shards[0].conn.getDB('admin').runCommand({setParameter: 1, traceExceptions: true}); + shard2.getDB('admin').runCommand({setParameter: 1, traceExceptions: true}); + // Try a migration assert.commandWorked( mongos.adminCommand({moveChunk: coll + '', find: {_id: 0}, to: shards[1]._id})); @@ -49,4 +54,5 @@ assert.eq('world', shard2.getCollection(coll + '').findOne().hello); st.stop(); + })(); |