summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorDan Larkin-York <dan.larkin-york@mongodb.com>2023-01-30 22:17:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-31 01:11:23 +0000
commit40c93f028e36f78c06756f4bfd358d240bdd9b34 (patch)
treee23f24ed25589a5093a1ef4c0ade6dfd615e60f6 /jstests/noPassthrough
parent150ad5a2bb2a403ad899257f52f03ddd5df2ca52 (diff)
downloadmongo-40c93f028e36f78c06756f4bfd358d240bdd9b34.tar.gz
SERVER-72677 Surface index validation errors arising from WT::verify
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/background_validation_checkpoint_existence.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/jstests/noPassthrough/background_validation_checkpoint_existence.js b/jstests/noPassthrough/background_validation_checkpoint_existence.js
index 8b5a1cd8ea0..438278b9aea 100644
--- a/jstests/noPassthrough/background_validation_checkpoint_existence.js
+++ b/jstests/noPassthrough/background_validation_checkpoint_existence.js
@@ -32,30 +32,30 @@ for (let i = 0; i < 5; i++) {
// The collection has not been checkpointed yet, so there is nothing to validate.
let res = assert.commandWorked(db.runCommand({validate: collName, background: true}));
-assert.eq(true, res.valid);
-assert.eq(false, res.hasOwnProperty("nrecords"));
-assert.eq(false, res.hasOwnProperty("nIndexes"));
+assert.eq(true, res.valid, res);
+assert.eq(false, res.hasOwnProperty("nrecords"), res);
+assert.eq(false, res.hasOwnProperty("nIndexes"), res);
forceCheckpoint();
res = assert.commandWorked(db.runCommand({validate: collName, background: true}));
-assert.eq(true, res.valid);
-assert.eq(true, res.hasOwnProperty("nrecords"));
-assert.eq(true, res.hasOwnProperty("nIndexes"));
+assert.eq(true, res.valid, res);
+assert.eq(true, res.hasOwnProperty("nrecords"), res);
+assert.eq(true, res.hasOwnProperty("nIndexes"), res);
assert.commandWorked(coll.createIndex({x: 1}));
// Shouldn't validate the newly created index here as it wasn't checkpointed yet.
res = assert.commandWorked(db.runCommand({validate: collName, background: true}));
-assert.eq(true, res.valid);
-assert.eq(1, res.nIndexes);
+assert.eq(true, res.valid, res);
+assert.eq(1, res.nIndexes, res);
forceCheckpoint();
// Validating after the checkpoint should validate the newly created index.
res = assert.commandWorked(db.runCommand({validate: collName, background: true}));
-assert.eq(true, res.valid);
-assert.eq(2, res.nIndexes);
+assert.eq(true, res.valid, res);
+assert.eq(2, res.nIndexes, res);
MongoRunner.stopMongod(conn);
}()); \ No newline at end of file