summaryrefslogtreecommitdiff
path: root/jstests/sharding/sharding_rs2.js
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2015-11-23 15:00:03 -0500
committerCharlie Swanson <charlie.swanson@mongodb.com>2015-11-30 10:34:20 -0500
commit909b13f0ac6ed6d0de5a37ae3b833494f9a12218 (patch)
tree74f9cc03632dcb823b7d81dfb782d5a2d6a8a54f /jstests/sharding/sharding_rs2.js
parente7181b542b25981db42f74cdaee4e7fc323d3e9d (diff)
downloadmongo-909b13f0ac6ed6d0de5a37ae3b833494f9a12218.tar.gz
SERVER-21384 Enable sharding suites on ephemeral storage engines
Diffstat (limited to 'jstests/sharding/sharding_rs2.js')
-rw-r--r--jstests/sharding/sharding_rs2.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/sharding/sharding_rs2.js b/jstests/sharding/sharding_rs2.js
index cc0cd299673..1dfa816c637 100644
--- a/jstests/sharding/sharding_rs2.js
+++ b/jstests/sharding/sharding_rs2.js
@@ -1,4 +1,8 @@
// mostly for testing mongos w/replica sets
+//
+// This test involves using fsync to lock the secondaries, so cannot be run on storage engines which
+// do not support the command.
+// @tags: [requires_fsync]
(function() {
var s = new ShardingTest({ shards: { rs0: { nodes: 2 }, rs1: { nodes: 2 } },
@@ -185,7 +189,7 @@ printjson( ts.find().batchSize(5).explain() )
// fsyncLock the secondaries
rs.test.getSecondaries().forEach(function(secondary) {
- secondary.getDB( "test" ).fsyncLock();
+ assert.commandWorked(secondary.getDB( "test" ).fsyncLock());
})
// Modify data only on the primary replica of the primary shard.
// { x: 60 } goes to the shard of "rs", which is the primary shard.