diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2020-07-17 15:00:42 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-07 21:05:42 +0000 |
commit | 06402114114ffc5146fd4b55402c96f1dc9ec4b5 (patch) | |
tree | a14ec5c0af26fc702c06eb85ac253b142f2911e7 | |
parent | 2c77c85f1fb4e0225461e90857c73666ed93fe12 (diff) | |
download | mongo-06402114114ffc5146fd4b55402c96f1dc9ec4b5.tar.gz |
SERVER-49704 txn_being_applied_to_secondary_cannot_be_killed.js should not allow electionsr4.2.9-rc0r4.2.9
(cherry picked from commit b7b91adc3a0e5f6e70231fdbcebcf11554cc1cb6)
-rw-r--r-- | jstests/sharding/txn_being_applied_to_secondary_cannot_be_killed.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/sharding/txn_being_applied_to_secondary_cannot_be_killed.js b/jstests/sharding/txn_being_applied_to_secondary_cannot_be_killed.js index 2e5751cc738..47eba62f274 100644 --- a/jstests/sharding/txn_being_applied_to_secondary_cannot_be_killed.js +++ b/jstests/sharding/txn_being_applied_to_secondary_cannot_be_killed.js @@ -21,8 +21,9 @@ const ns = dbName + "." + collName; TestData.transactionLifetimeLimitSeconds = 10; const rsOpts = { - nodes: 3, - settings: {chainingAllowed: false} + // Make secondaries unelectable. + nodes: [{}, {rsConfig: {priority: 0}}, {rsConfig: {priority: 0}}], + settings: {chainingAllowed: false, electionTimeoutMillis: ReplSetTest.kForeverMillis} }; let st = new ShardingTest({mongos: 2, shards: {rs0: rsOpts, rs1: rsOpts, rs2: rsOpts}}); |