diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-11-06 12:45:16 -0500 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-11-06 14:11:33 -0500 |
commit | eae0b57705a7b18362b7028c6fcb7c2469043ef4 (patch) | |
tree | 013565d4067eac9d9e06d4ce58f277a8d032171e /jstests | |
parent | 2de26d2c3c7f73cc49126ba32402c0a380c8f882 (diff) | |
download | mongo-eae0b57705a7b18362b7028c6fcb7c2469043ef4.tar.gz |
SERVER-37796 Skip log file corruption on debug builds
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/disk/wt_repair_corrupt_metadata.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jstests/disk/wt_repair_corrupt_metadata.js b/jstests/disk/wt_repair_corrupt_metadata.js index 0b5ecf8f3dd..23630f45a18 100644 --- a/jstests/disk/wt_repair_corrupt_metadata.js +++ b/jstests/disk/wt_repair_corrupt_metadata.js @@ -26,7 +26,8 @@ // Unfortunately using --nojournal triggers a WT_PANIC and aborts in debug builds, which the // following test case can exercise. // TODO: This return can be removed once WT-4310 is completed. - if (db.adminCommand('buildInfo').debug && mongodOptions.hasOwnProperty('nojournal')) { + 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."); return; @@ -76,6 +77,12 @@ // Corrupt the .turtle file in a very specific way such that the log sequence numbers are // invalid. if (mongodOptions.hasOwnProperty('journal')) { + // TODO: This return can be removed once WT-4310 is completed. + if (isDebug) { + jsTestLog("Skipping log file corruption because this is a debug build."); + return; + } + jsTestLog("Corrupting log file metadata"); let data = cat(turtleFile); |