summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shardingtest.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 /src/mongo/shell/shardingtest.js
parent4b6f1b99aea01016e875bb74872927b621c7321a (diff)
downloadmongo-9a4474ea06409f729121283dadbdf3a17b131cdb.tar.gz
Revert "SERVER-26309 Disable auto splitting in ShardingTest by default"
This reverts commit c47eb7408d712ac75c09b54079abfd0c28346a07.
Diffstat (limited to 'src/mongo/shell/shardingtest.js')
-rw-r--r--src/mongo/shell/shardingtest.js35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js
index bb39563c69e..42b8c7158d8 100644
--- a/src/mongo/shell/shardingtest.js
+++ b/src/mongo/shell/shardingtest.js
@@ -66,8 +66,6 @@
* mongosOptions {Object}: same as the mongos property above.
* Can be used to specify options that are common all mongos.
* enableBalancer {boolean} : if true, enable the balancer
- * enableAutoSplit {boolean} : if true, enable autosplitting; else, default to the
- * enableBalancer setting
* manualAddShard {boolean}: shards will not be added if true.
*
* useBridge {boolean}: If true, then a mongobridge process is started for each node in the
@@ -209,12 +207,10 @@ var ShardingTest = function(params) {
* Configures the cluster based on the specified parameters (balancer state, etc).
*/
function _configureCluster() {
+ // Disable the balancer unless it is explicitly turned on
if (!otherParams.enableBalancer) {
self.stopBalancer();
}
- if (!otherParams.enableAutoSplit) {
- self.disableAutoSplit();
- }
}
function connectionURLTheSame(a, b) {
@@ -778,15 +774,6 @@ var ShardingTest = function(params) {
if (opts.restart) {
opts = Object.merge(mongos.fullOptions, opts);
-
- // If the mongos is being restarted with a newer version, make sure we remove any
- // options that no longer exist in the newer version.
- // Note: If a jstest specifies the mongos binVersion as an array, calling
- // MongoRunner.areBinVersionsTheSame() will advance the binVersion iterator over that
- // array (SERVER-26261).
- if (MongoRunner.areBinVersionsTheSame('latest', opts.binVersion)) {
- delete opts.noAutoSplit;
- }
}
var newConn = MongoRunner.runMongos(opts);
@@ -950,15 +937,6 @@ var ShardingTest = function(params) {
? otherParams.waitForCSRSSecondaries
: true;
- // Default enableBalancer to false.
- otherParams.enableBalancer =
- ("enableBalancer" in otherParams) && (otherParams.enableBalancer === true);
-
- // Let autosplit behavior match that of the balancer if autosplit is not explicitly set.
- if (!("enableAutoSplit" in otherParams)) {
- otherParams.enableAutoSplit = otherParams.enableBalancer;
- }
-
// Allow specifying mixed-type options like this:
// { mongos : [ { noprealloc : "" } ],
// config : [ { smallfiles : "" } ],
@@ -1351,17 +1329,6 @@ var ShardingTest = function(params) {
options.port = options.port || allocatePort();
- // TODO(esha): remove after v3.4 ships.
- // Legacy mongoses use a command line option to disable autosplit instead of reading the
- // config.settings collection.
- // Note: If a jstest specifies the mongos binVersion as an array, calling
- // MongoRunner.areBinVersionsTheSame() will advance the binVersion iterator over that array
- // (SERVER-26261).
- if (options.binVersion && MongoRunner.areBinVersionsTheSame('3.2', options.binVersion) &&
- !otherParams.enableAutoSplit) {
- options.noAutoSplit = "";
- }
-
if (otherParams.useBridge) {
var bridgeOptions =
Object.merge(otherParams.bridgeOptions, options.bridgeOptions || {});