summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-06-13 11:02:45 -0400
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-06-13 13:30:22 -0400
commit2581b5d745009e17ac5a94ea7fe1e9a41b7905ed (patch)
tree8114c5b227a9668fc606a6803a930881e6b35a49 /jstests/disk
parent027a917ad08296f90a1a4a010daf990c5f92beb6 (diff)
downloadmongo-2581b5d745009e17ac5a94ea7fe1e9a41b7905ed.tar.gz
SERVER-41667 Disable 'wt_repair_corrupt_metadata.js' on debug builds
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/wt_repair_corrupt_metadata.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/jstests/disk/wt_repair_corrupt_metadata.js b/jstests/disk/wt_repair_corrupt_metadata.js
index a8240e97fe0..0b4bc6a6083 100644
--- a/jstests/disk/wt_repair_corrupt_metadata.js
+++ b/jstests/disk/wt_repair_corrupt_metadata.js
@@ -1,5 +1,6 @@
/**
* Tests that --repair on WiredTiger correctly and gracefully handles corrupt metadata files.
+ * This test should not run on debug builds because WiredTiger's diagnostic mode is enabled.
*
* @tags: [requires_wiredtiger,requires_journaling]
*/
@@ -27,9 +28,8 @@
// following test case can exercise.
// TODO: This return can be removed once WT-4310 is completed.
let isDebug = db.adminCommand('buildInfo').debug;
- if (isDebug && mongodOptions.hasOwnProperty('nojournal')) {
- jsTestLog(
- "Skipping test case because this is a debug build and --nojournal was provided.");
+ if (isDebug) {
+ jsTestLog("Skipping test case because this is a debug build");
return;
}
@@ -61,6 +61,8 @@
removeFile(turtleFile);
copyFile(turtleFileWithoutCollection, turtleFile);
+ // This test characterizes the current WiredTiger salvage behaviour, which may be subject to
+ // change in the future. See SERVER-41667.
assertRepairSucceeds(dbpath, mongod.port, mongodOptions);
mongod = startMongodOnExistingPath(dbpath, mongodOptions);