diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2019-02-19 14:13:27 -0500 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2019-02-26 10:36:10 -0500 |
commit | b0d3c0d2934a2096ba27362db22fe768b5341485 (patch) | |
tree | 0614637d5e3dfac1db335319ecb40cebcecb7004 /jstests/sharding/transactions_causal_consistency.js | |
parent | c7bf80fd5c2f0fec947507df2ca028c73f836dc3 (diff) | |
download | mongo-b0d3c0d2934a2096ba27362db22fe768b5341485.tar.gz |
SERVER-39624 Put internal router retries for stale version and snapshot errors behind a fail point
Diffstat (limited to 'jstests/sharding/transactions_causal_consistency.js')
-rw-r--r-- | jstests/sharding/transactions_causal_consistency.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/sharding/transactions_causal_consistency.js b/jstests/sharding/transactions_causal_consistency.js index 88a7762d501..aef05abfa59 100644 --- a/jstests/sharding/transactions_causal_consistency.js +++ b/jstests/sharding/transactions_causal_consistency.js @@ -9,12 +9,16 @@ (function() { "use strict"; + load("jstests/sharding/libs/sharded_transactions_helpers.js"); + const dbName = "test"; const collName = "foo"; const ns = dbName + "." + collName; const st = new ShardingTest({shards: 2, mongos: 2}); + enableStaleVersionAndSnapshotRetriesWithinTransactions(st); + // Set up a sharded collection with 2 chunks, [min, 0) and [0, max), one on each shard, with one // document in each. @@ -74,5 +78,7 @@ runTest(st, {level: readConcernLevel}); } + disableStaleVersionAndSnapshotRetriesWithinTransactions(st); + st.stop(); })(); |