diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-03-19 11:06:08 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-03-19 12:22:39 -0400 |
commit | 17eebc8ac8bfcff0b8d2b8b2a1d97187efd6efca (patch) | |
tree | 4c9dd6c435d484743ebdbdd8cffa0d8c793dedbe /jstests/concurrency | |
parent | d02692910980488db7e1a381776aabc9f80d6c49 (diff) | |
download | mongo-17eebc8ac8bfcff0b8d2b8b2a1d97187efd6efca.tar.gz |
SERVER-33974 multi-statement transaction FSM test should only be run in WiredTiger engine
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_workloads/multi_statement_transaction_simple.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/concurrency/fsm_workloads/multi_statement_transaction_simple.js b/jstests/concurrency/fsm_workloads/multi_statement_transaction_simple.js index 3d78c764b5e..b7232bc8850 100644 --- a/jstests/concurrency/fsm_workloads/multi_statement_transaction_simple.js +++ b/jstests/concurrency/fsm_workloads/multi_statement_transaction_simple.js @@ -7,6 +7,9 @@ */ var $config = (function() { + // For isWiredTiger. + load("jstests/concurrency/fsm_workload_helpers/server_types.js"); + function _calcTotalMoneyBalances(sessionDb, txnNumber, collName) { let res = sessionDb.runCommand({ find: collName, @@ -117,8 +120,9 @@ var $config = (function() { }; var skip = function skip(cluster) { - if (cluster.isSharded() || cluster.isStandalone()) { - return {skip: true, msg: 'only runs in a replica set.'}; + if (cluster.isSharded() || cluster.isStandalone() || + !isWiredTiger(cluster.getDB("admin"))) { + return {skip: true, msg: 'only runs in a replica set with WiredTiger.'}; } return {skip: false}; }; |