summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaddie Zechar <mez2113@columbia.edu>2021-06-25 14:20:25 +0000
committerMaddie Zechar <mez2113@columbia.edu>2021-06-25 17:55:21 +0000
commita8a803e1964d584694827ea20ada5189909532de (patch)
treef735f7b32c76db6ed050103ba03e19e5dc7fd39a
parent9872b67a56e5dd49f2dd302e240ae74c9fa4b0b5 (diff)
downloadmongo-a8a803e1964d584694827ea20ada5189909532de.tar.gz
SERVER-58091: Fix BF for Linux noJournal variant caused by deprecated_map_reduce
-rw-r--r--jstests/noPassthrough/deprecated_map_reduce.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/noPassthrough/deprecated_map_reduce.js b/jstests/noPassthrough/deprecated_map_reduce.js
index 008e132cf90..ba1ae3daae2 100644
--- a/jstests/noPassthrough/deprecated_map_reduce.js
+++ b/jstests/noPassthrough/deprecated_map_reduce.js
@@ -59,6 +59,16 @@ matchingLogLines = [...findMatchingLogLines(globalLogs.log, fieldMatcher)];
assert.eq(matchingLogLines.length, 1, matchingLogLines);
MongoRunner.stopMongod(standalone);
+// The tests below this comment connect through mongos and shard a collection (creating replica
+// sets). This if stanza assures that we skip the portion below if testing a build variant with
+// --nojournal and WiredTiger, as that variant will always fail when using replica sets.
+if (jsTest.options().noJournal &&
+ (!jsTest.options().storageEngine || jsTest.options().storageEngine === "wiredTiger")) {
+ print("Skipping test because running WiredTiger without journaling isn't a valid" +
+ " replica set configuration");
+ return;
+}
+
jsTest.log('Test cluster');
const st = new ShardingTest({shards: 2, mongos: 1});