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:
parent
09388643a6
commit
cdef5d9ad7
@ -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.');
|
||||
|
Loading…
Reference in New Issue
Block a user