summaryrefslogtreecommitdiff
path: root/jstests/readonly
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2019-10-02 19:18:48 +0000
committerevergreen <evergreen@mongodb.com>2019-10-02 19:18:48 +0000
commitaebb8ab9db04d6f675293d0739d55d6dd88c53d6 (patch)
treea69952bb0765d104a269ddeea0db601b0fa43f46 /jstests/readonly
parent39759fe911e62d278d9eba09a068e006c77bbea8 (diff)
downloadmongo-aebb8ab9db04d6f675293d0739d55d6dd88c53d6.tar.gz
SERVER-33830 Fix failing tests when shards are started as replica sets
Diffstat (limited to 'jstests/readonly')
-rw-r--r--jstests/readonly/lib/read_only_test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/readonly/lib/read_only_test.js b/jstests/readonly/lib/read_only_test.js
index 04e1e2186ba..3a631a66057 100644
--- a/jstests/readonly/lib/read_only_test.js
+++ b/jstests/readonly/lib/read_only_test.js
@@ -52,7 +52,9 @@ ShardedFixture = function() {
};
ShardedFixture.prototype.runLoadPhase = function runLoadPhase(test) {
- // TODO: SERVER-33830 remove shardAsReplicaSet: false
+ // TODO: SERVER-43758 Tests where shards are started in read-only mode
+ // cannot use replica set shards, because replication requires doing writes
+ // to run an election.
this.shardingTest =
new ShardingTest({mongos: 1, shards: this.nShards, other: {shardAsReplicaSet: false}});