From cdef5d9ad7a5c138637354a0644457a439507b80 Mon Sep 17 00:00:00 2001 From: Max Hirschhorn Date: Fri, 27 Oct 2017 10:06:43 -0400 Subject: [PATCH] SERVER-31744 Only ignore UUIDs in dbhash check for master/slave. --- jstests/hooks/run_check_repl_dbhash.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.');