summaryrefslogtreecommitdiff
path: root/jstests/hooks
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2017-10-27 10:06:43 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2017-10-27 10:06:43 -0400
commitcdef5d9ad7a5c138637354a0644457a439507b80 (patch)
tree052c5d9d7b49b7feadbbde719c558d433982b1ee /jstests/hooks
parent09388643a69af34af0d123c7ccb814548454f35e (diff)
downloadmongo-cdef5d9ad7a5c138637354a0644457a439507b80.tar.gz
SERVER-31744 Only ignore UUIDs in dbhash check for master/slave.
Diffstat (limited to 'jstests/hooks')
-rw-r--r--jstests/hooks/run_check_repl_dbhash.js7
1 files changed, 6 insertions, 1 deletions
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.');