From 8c67bb9322f351cd54fa9a80de7c33d3c4fdfdc8 Mon Sep 17 00:00:00 2001 From: Charlie Swanson Date: Mon, 16 Nov 2015 17:43:22 -0500 Subject: SERVER-21384 Enable all suites on ephemeral storage engines --- jstests/gle/gle_explicit_optime.js | 5 ++++- jstests/gle/gle_sharded_wc.js | 4 ++++ jstests/gle/sync1.js | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'jstests/gle') 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" ); -- cgit v1.2.1