diff --git a/jstests/hooks/run_check_repl_dbhash.js b/jstests/hooks/run_check_repl_dbhash.js index 2bf57647ac1..5a9606e20b1 100644 --- a/jstests/hooks/run_check_repl_dbhash.js +++ b/jstests/hooks/run_check_repl_dbhash.js @@ -86,7 +86,12 @@ var testFixture = isMasterSlave ? new MasterSlaveDBHashTest(db.getMongo().host) : new ReplSetTest(db.getMongo().host); var excludedDBs = jsTest.options().excludedDBsFromDBHash || []; - testFixture.checkReplicatedDataHashes(undefined, excludedDBs, true /* skip UUID check */); + + // Since UUIDs aren't explicitly replicated in master-slave deployments, we ignore the UUID in + // the output of the "listCollections" command to avoid reporting a known data inconsistency + // issue from checkReplicatedDataHashes(). + var ignoreUUIDs = isMasterSlave; + testFixture.checkReplicatedDataHashes(undefined, excludedDBs, ignoreUUIDs); var totalTime = Date.now() - startTime; print('Finished consistency checks of cluster in ' + totalTime + ' ms.');