diff options
author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2023-01-30 22:17:36 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-31 01:11:23 +0000 |
commit | 40c93f028e36f78c06756f4bfd358d240bdd9b34 (patch) | |
tree | e23f24ed25589a5093a1ef4c0ade6dfd615e60f6 /jstests/disk | |
parent | 150ad5a2bb2a403ad899257f52f03ddd5df2ca52 (diff) | |
download | mongo-40c93f028e36f78c06756f4bfd358d240bdd9b34.tar.gz |
SERVER-72677 Surface index validation errors arising from WT::verify
Diffstat (limited to 'jstests/disk')
-rw-r--r-- | jstests/disk/wt_validate_table_logging.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/disk/wt_validate_table_logging.js b/jstests/disk/wt_validate_table_logging.js index 1dcebc31144..571491a3be2 100644 --- a/jstests/disk/wt_validate_table_logging.js +++ b/jstests/disk/wt_validate_table_logging.js @@ -55,8 +55,7 @@ const primary = replTest.getPrimary(); // Run validate as a replica set, which will expect the tables to not be logged. let res = assert.commandWorked(primary.getDB(dbName).runCommand({validate: collName})); assert(!res.valid); -// TODO (SERVER-72677): The validate results should report three errors. -assert.eq(res.errors.length, 1); +assert.eq(res.errors.length, 3); checkLog.containsJson(primary, 6898101, {uri: collUri(primary), expected: false}); checkLog.containsJson( primary, 6898101, {index: '_id_', uri: indexUri(primary, '_id_'), expected: false}); @@ -75,8 +74,7 @@ conn = MongoRunner.runMongod(nodeOptions); // Run validate as a standalone, which will expect the tables to be logged. res = assert.commandWorked(conn.getDB(dbName).runCommand({validate: collName})); assert(!res.valid); -// TODO (SERVER-72677): The validate results should report three errors. -assert.eq(res.errors.length, 1); +assert.eq(res.errors.length, 3); checkLog.containsJson(conn, 6898101, {uri: collUri(conn), expected: true}); checkLog.containsJson(conn, 6898101, {index: '_id_', uri: indexUri(conn, '_id_'), expected: true}); checkLog.containsJson( |