diff options
Diffstat (limited to 'jstests/sharding')
-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}}); |