summaryrefslogtreecommitdiff
path: root/jstests/gle
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2015-11-16 17:43:22 -0500
committerCharlie Swanson <charlie.swanson@mongodb.com>2015-12-09 12:20:02 -0500
commit8c67bb9322f351cd54fa9a80de7c33d3c4fdfdc8 (patch)
tree6440f151d2ba327517b86f089f5e053dd33cb365 /jstests/gle
parent13270a048515916324c5f44958c225550d5c4dc9 (diff)
downloadmongo-8c67bb9322f351cd54fa9a80de7c33d3c4fdfdc8.tar.gz
SERVER-21384 Enable all suites on ephemeral storage engines
Diffstat (limited to 'jstests/gle')
-rw-r--r--jstests/gle/gle_explicit_optime.js5
-rw-r--r--jstests/gle/gle_sharded_wc.js4
-rw-r--r--jstests/gle/sync1.js4
3 files changed, 12 insertions, 1 deletions
diff --git a/jstests/gle/gle_explicit_optime.js b/jstests/gle/gle_explicit_optime.js
index 77c526e981d..7bc9e35b3a9 100644
--- a/jstests/gle/gle_explicit_optime.js
+++ b/jstests/gle/gle_explicit_optime.js
@@ -1,6 +1,9 @@
//
// Tests the use of the wOpTime option in getLastError
//
+// This test requires fsync to lock the secondary, so cannot be run on storage engines which do not
+// support the command.
+// @tags: [requires_fsync]
var rst = new ReplSetTest({ nodes : 2 });
rst.startSet();
@@ -18,7 +21,7 @@ assert.eq( null, gleObj.err );
var opTimeBeforeFailure = gleObj.lastOp;
// Lock the secondary
-secondary.getDB("admin").fsyncLock();
+assert.commandWorked(secondary.getDB("admin").fsyncLock());
// Insert a doc and replicate it to the primary only
coll.insert({ some : "doc" });
diff --git a/jstests/gle/gle_sharded_wc.js b/jstests/gle/gle_sharded_wc.js
index bdde00cab25..7cff8b20433 100644
--- a/jstests/gle/gle_sharded_wc.js
+++ b/jstests/gle/gle_sharded_wc.js
@@ -1,5 +1,9 @@
// Tests of sharded GLE enforcing write concern against operations in a cluster
// Basic sharded GLE operation is tested elsewhere.
+//
+// This test asserts that a journaled write to a mongod running with --nojournal should be rejected,
+// so cannot be run on the ephemeralForTest storage engine, as it accepts all journaled writes.
+// @tags: [SERVER-21420]
(function() {
diff --git a/jstests/gle/sync1.js b/jstests/gle/sync1.js
index 83d26d1e71f..c840ff8fac5 100644
--- a/jstests/gle/sync1.js
+++ b/jstests/gle/sync1.js
@@ -1,4 +1,8 @@
// TODO: remove test after we deprecate SyncClusterConnection
+//
+// This test involves restarting a standalone shard, so cannot be run on ephemeral storage engines.
+// A restarted standalone will lose all data when using an ephemeral storage engine.
+// @tags: [requires_persistence]
var test = new SyncCCTest( "sync1" );