diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-12-31 08:45:44 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-31 12:00:24 +0000 |
commit | 013ef9e95f6e825780f48099f19099886ee90036 (patch) | |
tree | 194b3d7df02e601828e0375dfe9444fa62f6e6f2 | |
parent | 47d12041be895626acbdee7c6b5ae38594279d7d (diff) | |
download | mongo-013ef9e95f6e825780f48099f19099886ee90036.tar.gz |
SERVER-62159 Get rid of TODO referencing a closed ticket
-rw-r--r-- | jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js | 6 | ||||
-rw-r--r-- | jstests/sharding/mongos_rs_shard_failure_tolerance.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js b/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js index f41775833a9..855cac557cd 100644 --- a/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js +++ b/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js @@ -28,6 +28,9 @@ TestData.skipCheckOrphans = true; // @tags: [live_record_incompatible] TestData.disableImplicitSessions = true; +(function() { +'use strict'; + var options = {rs: true, rsOptions: {nodes: 2}, keyFile: "jstests/libs/key1"}; var st = new ShardingTest({shards: 3, mongos: 1, other: options}); @@ -89,8 +92,6 @@ function authDBUsers(conn) { // is received, and refreshing requires communication with the primary to obtain the newest version. // Read from the secondaries once before taking down primaries to ensure they have loaded the // routing table into memory. -// TODO SERVER-30148: replace this with calls to awaitReplication() on each shard owning data for -// the sharded collection once secondaries refresh proactively. var mongosSetupConn = new Mongo(mongos.host); authDBUsers(mongosSetupConn); mongosSetupConn.setReadPref("secondary"); @@ -306,3 +307,4 @@ gc(); // Clean up new connections jsTest.log("DONE!"); st.stop(); +})(); diff --git a/jstests/sharding/mongos_rs_shard_failure_tolerance.js b/jstests/sharding/mongos_rs_shard_failure_tolerance.js index 3c74095a588..66c2133c90a 100644 --- a/jstests/sharding/mongos_rs_shard_failure_tolerance.js +++ b/jstests/sharding/mongos_rs_shard_failure_tolerance.js @@ -48,8 +48,6 @@ assert.commandWorked( // version is received, and refreshing requires communication with the primary to obtain the // newest version. Read from the secondaries once before taking down primaries to ensure they // have loaded the routing table into memory. -// TODO SERVER-30148: replace this with calls to awaitReplication() on each shard owning data -// for the sharded collection once secondaries refresh proactively. var mongosSetupConn = new Mongo(mongos.host); mongosSetupConn.setReadPref("secondary"); assert(!mongosSetupConn.getCollection(collSharded.toString()).find({}).hasNext()); |