8000 Lower log level of sync replication events. · sleepycat/arangodb@1053897 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1053897

Browse files
committed
Lower log level of sync replication events.
1 parent 379d582 commit 1053897

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

js/server/modules/@arangodb/cluster.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ function synchronizeOneShard (database, shard, planId, leader) {
485485
planned[0] !== leader) {
486486
// Things have changed again, simply terminate:
487487
terminateAndStartOther();
488-
console.info('synchronizeOneShard: cancelled, %s/%s, %s/%s',
488+
console.debug('synchronizeOneShard: cancelled, %s/%s, %s/%s',
489489
database, shard, database, planId);
490490
return;
491491
}
@@ -500,11 +500,11 @@ function synchronizeOneShard (database, shard, planId, leader) {
500500
}
501501
// We are already there, this is rather strange, but never mind:
502502
terminateAndStartOther();
503-
console.info('synchronizeOneShard: already done, %s/%s, %s/%s',
503+
console.debug('synchronizeOneShard: already done, %s/%s, %s/%s',
504504
database, shard, database, planId);
505505
return;
506506
}
507-
console.info('synchronizeOneShard: waiting for leader, %s/%s, %s/%s',
507+
console.debug('synchronizeOneShard: waiting for leader, %s/%s, %s/%s',
508508
database, shard, database, planId);
509509
wait(1.0);
510510
}
@@ -574,7 +574,7 @@ function synchronizeOneShard (database, shard, planId, leader) {
574574
shard);
575575
}
576576
if (ok) {
577-
console.info('synchronizeOneShard: synchronization worked for shard',
577+
console.debug('synchronizeOneShard: synchronization worked for shard',
578578
shard);
579579
} else {
580580
throw 'Did not work for shard ' + shard + '.';
@@ -1410,13 +1410,13 @@ function setupReplication () {
14101410
var config = { 'endpoint': endpoint, 'includeSystem': false,
14111411
'incremental': false, 'autoStart': true,
14121412
'requireFromPresent': true};
1413-
console.info('Starting synchronization...');
1413+
console.debug('Starting synchronization...');
14141414
var res = rep.sync(config);
1415-
console.info('Last log tick: ' + res.lastLogTick +
1415+
console.debug('Last log tick: ' + res.lastLogTick +
14161416
', starting replication...');
14171417
rep.applier.properties(config);
14181418
var res2 = rep.applier.start(res.lastLogTick);
1419-
console.info('Result of replication start: ' + res2);
1419+
console.debug('Result of replication start: ' + res2);
14201420
}
14211421
} catch (err) {
14221422
console.error('Could not set up replication for database ', database, JSON.stringify(err));
@@ -1753,7 +1753,7 @@ var bootstrapDbServers = function (isRelaunch) {
17531753
var r = global.ArangoClusterComm.wait(ops[i]);
17541754

17551755
if (r.status === 'RECEIVED') {
1756-
console.info('bootstraped DB server %s', dbServers[i]);
1756+
console.debug('bootstraped DB server %s', dbServers[i]);
17571757
} else if (r.status === 'TIMEOUT') {
17581758
console.error('cannot bootstrap DB server %s: operation timed out', dbServers[i]);
17591759
result = false;
@@ -1898,9 +1898,9 @@ function rebalanceShards () {
18981898
}
18991899
}
19001900

1901-
console.info("Rebalancing shards");
1902-
console.info(shardMap);
1903-
console.info(dbTab);
1901+
console.debug("Rebalancing shards");
1902+
console.debug(shardMap);
1903+
console.debug(dbTab);
19041904

19051905
// Compute total weight for each DBServer:
19061906
var totalWeight = [];
@@ -1937,7 +1937,7 @@ function rebalanceShards () {
19371937
toServer: emptiest };
19381938
var msg = moveShard(todo);
19391939
if (msg === '') {
1940-
console.info('rebalanceShards: moveShard(', todo, ')');
1940+
console.debug('rebalanceShards: moveShard(', todo, ')');
19411941
totalWeight[last].weight -= shardInfo.weight;
19421942
totalWeight[0].weight += shardInfo.weight;
19431943
totalWeight = _.sortBy(totalWeight, x => x.weight);

0 commit comments

Comments
 (0)
0