mirror of https://gitee.com/bigwinds/arangodb
add some debugging for unstable replication_sync test (#6436)
This commit is contained in:
parent
bc99ed2eca
commit
7a3c2bf6af
|
@ -249,7 +249,7 @@ Result DatabaseInitialSyncer::runWithInventory(bool incremental,
|
|||
LOG_TOPIC(DEBUG, Logger::REPLICATION)
|
||||
<< "initial synchronization with master took: "
|
||||
<< Logger::FIXED(TRI_microtime() - startTime, 6)
|
||||
<< " s. status: " << r.errorMessage();
|
||||
<< " s. status: " << (r.errorMessage().empty() ? "all good" : r.errorMessage());
|
||||
|
||||
return r;
|
||||
} catch (arangodb::basics::Exception const& ex) {
|
||||
|
|
|
@ -1309,10 +1309,11 @@ function startInstance (protocol, options, addArgs, testname, tmpDir) {
|
|||
const startTime = time();
|
||||
try {
|
||||
if (options.hasOwnProperty('server')) {
|
||||
let rc = { endpoint: options.server,
|
||||
rootDir: options.serverRoot,
|
||||
url: options.server.replace('tcp', 'http'),
|
||||
arangods: []
|
||||
let rc = {
|
||||
endpoint: options.server,
|
||||
rootDir: options.serverRoot,
|
||||
url: options.server.replace('tcp', 'http'),
|
||||
arangods: []
|
||||
};
|
||||
arango.reconnect(rc.endpoint, '_system', 'root', '');
|
||||
return rc;
|
||||
|
@ -1410,13 +1411,9 @@ exports.run = {
|
|||
};
|
||||
|
||||
exports.shutdownInstance = shutdownInstance;
|
||||
// exports.startInstanceCluster = startInstanceCluster;
|
||||
exports.startArango = startArango;
|
||||
// exports.startInstanceAgency = startInstanceAgency;
|
||||
// exports.startInstanceSingleServer = startInstanceSingleServer;
|
||||
exports.startInstance = startInstance;
|
||||
exports.setupBinaries = setupBinaries;
|
||||
|
||||
exports.executableExt = executableExt;
|
||||
exports.serverCrashed = serverCrashed;
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ function replicationFuzz (options) {
|
|||
customInstanceInfos,
|
||||
startStopHandlers) {
|
||||
let message;
|
||||
let slave = pu.startInstance('tcp', options, {}, 'slave_sync');
|
||||
let slave = pu.startInstance('tcp', options, {}, 'slave_fuzz');
|
||||
let state = (typeof slave === 'object');
|
||||
|
||||
if (state) {
|
||||
|
@ -140,7 +140,7 @@ function replicationRandom (options) {
|
|||
customInstanceInfos,
|
||||
startStopHandlers) {
|
||||
let message;
|
||||
let slave = pu.startInstance('tcp', options, {}, 'slave_sync');
|
||||
let slave = pu.startInstance('tcp', options, {}, 'slave_random');
|
||||
let state = (typeof slave === 'object');
|
||||
|
||||
if (state) {
|
||||
|
@ -199,7 +199,7 @@ function replicationAql (options) {
|
|||
customInstanceInfos,
|
||||
startStopHandlers) {
|
||||
let message;
|
||||
let slave = pu.startInstance('tcp', options, {}, 'slave_sync');
|
||||
let slave = pu.startInstance('tcp', options, {}, 'slave_aql');
|
||||
let state = (typeof slave === 'object');
|
||||
|
||||
if (state) {
|
||||
|
@ -410,7 +410,7 @@ function replicationSync (options) {
|
|||
startStopHandlers) {
|
||||
let message;
|
||||
let res = true;
|
||||
let slave = pu.startInstance('tcp', options, {}, 'slave_sync');
|
||||
let slave = pu.startInstance('tcp', options, {"log.level" : "replication=trace", "--log.level": "replication=trace"}, 'slave_sync');
|
||||
let state = (typeof slave === 'object');
|
||||
|
||||
if (state) {
|
||||
|
|
Loading…
Reference in New Issue