summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-04-13 21:19:07 -0400
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-04-17 13:02:52 -0400
commitc61fc7b0a6281cfbb7c14652cc7b097daeb4088e (patch)
tree4302fbc2ad35829871e93b72e4cfca1408658f54
parent6740732f3a331372127369e423cb257b2cdd6ccf (diff)
downloadmongo-c61fc7b0a6281cfbb7c14652cc7b097daeb4088e.tar.gz
SERVER-34485: Only run ensure_last_applied_on_upgrade_to_40 on WT
-rw-r--r--jstests/multiVersion/ensure_last_applied_on_upgrade_to_40.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/multiVersion/ensure_last_applied_on_upgrade_to_40.js b/jstests/multiVersion/ensure_last_applied_on_upgrade_to_40.js
index 3778f01b863..29aca9695e8 100644
--- a/jstests/multiVersion/ensure_last_applied_on_upgrade_to_40.js
+++ b/jstests/multiVersion/ensure_last_applied_on_upgrade_to_40.js
@@ -1,6 +1,8 @@
/**
* This tests that nodes upgrading from 3.6 to 4.0 can recover without data loss if the 4.0 binary
* crashes before taking a stable checkpoint.
+ *
+ * @tags: [requires_replication, requires_persistence]
*/
(function() {
"use strict";
@@ -14,6 +16,12 @@
rst.startSet();
rst.initiate();
+ if (!rst.getPrimary().adminCommand("serverStatus").storageEngine.supportsSnapshotReadConcern) {
+ // Only snapshotting storage engines require correct timestamping of index builds.
+ rst.stopSet();
+ return;
+ }
+
function getColl(conn) {
return conn.getDB("test").getCollection("foo");
}