summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2020-04-24 09:49:31 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-24 21:03:02 +0000
commit02e0022fe9ce0addbe5add0101e6fd1a555437c3 (patch)
tree7fae33334aac57da1037dfe53e1894b43cefe29e /jstests
parentb89e5a3da73fa8ade2fba3331b833f28fbfde003 (diff)
downloadmongo-02e0022fe9ce0addbe5add0101e6fd1a555437c3.tar.gz
SERVER-47658: Improve validate diagnostics, with a focus on multikey failures.
(cherry picked from commit a89edc5d9e2908abce696932462c118d8ecf3345)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/hooks/run_validate_collections_background.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/hooks/run_validate_collections_background.js b/jstests/hooks/run_validate_collections_background.js
index 89c8f2fcc21..9e0ca571d9b 100644
--- a/jstests/hooks/run_validate_collections_background.js
+++ b/jstests/hooks/run_validate_collections_background.js
@@ -90,6 +90,7 @@ const validateCollectionsBackgroundThread = function validateCollectionsBackgrou
return z.name;
});
+ conn.adminCommand({configureFailPoint: "crashOnMultikeyValidateFailure", mode: "alwaysOn"});
for (let dbName of dbNames) {
let db = conn.getDB(dbName);
@@ -115,6 +116,7 @@ const validateCollectionsBackgroundThread = function validateCollectionsBackgrou
}
}
}
+ conn.adminCommand({configureFailPoint: "crashOnMultikeyValidateFailure", mode: "off"});
// If any commands failed, format and return an error.
if (failedValidateResults.length) {