0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-31744 Only ignore UUIDs in dbhash check for master/slave.

This commit is contained in:
Max Hirschhorn 2017-10-27 10:06:43 -04:00
parent 09388643a6
commit cdef5d9ad7

View File

@ -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.');