1
0
Fork 0

More output for sync replication tests.

This commit is contained in:
Max Neunhoeffer 2016-05-23 23:10:03 +02:00
parent 717d110a1d
commit 50e1ff3fb7
1 changed files with 4 additions and 1 deletions

View File

@ -37,6 +37,7 @@ const _ = require("lodash");
const wait = require("internal").wait;
const suspendExternal = require("internal").suspendExternal;
const continueExternal = require("internal").continueExternal;
const print = require("internal").print;
////////////////////////////////////////////////////////////////////////////////
@ -283,14 +284,16 @@ function SynchronousReplicationSuite () {
setUp : function () {
var systemCollServers = findCollectionServers("_system", "_graphs");
print("System collections using servers", systemCollServers);
while (true) {
db._drop(cn);
c = db._create(cn, {numberOfShards: 1, replicationFactor: 2});
var servers = findCollectionServers("_system", cn);
print("Test collection using servers", servers);
if (_.intersection(systemCollServers, servers).length === 0) {
return;
}
console.info("Need to recreate collection to avoid system collection servers.");
console.error("Need to recreate collection to avoid system collection servers.");
}
},