summaryrefslogtreecommitdiff
path: root/jstests/sharding/top_chunk_autosplit.js
diff options
context:
space:
mode:
authorDan Pasette <dan@mongodb.com>2016-09-29 19:19:59 -0400
committerDan Pasette <dan@mongodb.com>2016-09-29 19:19:59 -0400
commit9a4474ea06409f729121283dadbdf3a17b131cdb (patch)
tree8ec980a5569c8ab6dc3b5d4e93e0f9da29d2edc6 /jstests/sharding/top_chunk_autosplit.js
parent4b6f1b99aea01016e875bb74872927b621c7321a (diff)
downloadmongo-9a4474ea06409f729121283dadbdf3a17b131cdb.tar.gz
Revert "SERVER-26309 Disable auto splitting in ShardingTest by default"
This reverts commit c47eb7408d712ac75c09b54079abfd0c28346a07.
Diffstat (limited to 'jstests/sharding/top_chunk_autosplit.js')
-rw-r--r--jstests/sharding/top_chunk_autosplit.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/jstests/sharding/top_chunk_autosplit.js b/jstests/sharding/top_chunk_autosplit.js
index 2a8e40a787a..6047e7a948c 100644
--- a/jstests/sharding/top_chunk_autosplit.js
+++ b/jstests/sharding/top_chunk_autosplit.js
@@ -294,8 +294,7 @@ var maxSizeTests = [
var dbName = "TopChunkDB";
var collName = "coll";
-var st = shardSetup(
- {name: "topchunk", shards: 4, chunkSize: 1, other: {enableAutoSplit: true}}, dbName, collName);
+var st = shardSetup({name: "topchunk", shards: 4, chunkSize: 1}, dbName, collName);
var db = st.getDB(dbName);
var coll = db[collName];
var configDB = st.s.getDB('config');
@@ -311,9 +310,7 @@ for (var i = 0; i < tests.length; i++) {
st.stop();
// Single node shard tests
-st = shardSetup({name: "singleNode", shards: 1, chunkSize: 1, other: {enableAutoSplit: true}},
- dbName,
- collName);
+st = shardSetup({name: "singleNode", shards: 1, chunkSize: 1}, dbName, collName);
db = st.getDB(dbName);
coll = db[collName];
configDB = st.s.getDB('config');
@@ -330,14 +327,8 @@ st.stop();
// maxSize test
// To set maxSize, must manually add the shards
-st = shardSetup({
- name: "maxSize",
- shards: 2,
- chunkSize: 1,
- other: {manualAddShard: true, enableAutoSplit: true}
-},
- dbName,
- collName);
+st = shardSetup(
+ {name: "maxSize", shards: 2, chunkSize: 1, other: {manualAddShard: true}}, dbName, collName);
db = st.getDB(dbName);
coll = db[collName];
configDB = st.s.getDB('config');