@@ -485,7 +485,7 @@ function synchronizeOneShard (database, shard, planId, leader) {
485
485
planned [ 0 ] !== leader ) {
486
486
// Things have changed again, simply terminate:
487
487
terminateAndStartOther ( ) ;
488
- console . info ( 'synchronizeOneShard: cancelled, %s/%s, %s/%s' ,
488
+ console . debug ( 'synchronizeOneShard: cancelled, %s/%s, %s/%s' ,
489
489
database , shard , database , planId ) ;
490
490
return ;
491
491
}
@@ -500,11 +500,11 @@ function synchronizeOneShard (database, shard, planId, leader) {
500
500
}
501
501
// We are already there, this is rather strange, but never mind:
502
502
terminateAndStartOther ( ) ;
503
- console . info ( 'synchronizeOneShard: already done, %s/%s, %s/%s' ,
503
+ console . debug ( 'synchronizeOneShard: already done, %s/%s, %s/%s' ,
504
504
database , shard , database , planId ) ;
505
505
return ;
506
506
}
507
- console . info ( 'synchronizeOneShard: waiting for leader, %s/%s, %s/%s' ,
507
+ console . debug ( 'synchronizeOneShard: waiting for leader, %s/%s, %s/%s' ,
508
508
database , shard , database , planId ) ;
509
509
wait ( 1.0 ) ;
510
510
}
@@ -574,7 +574,7 @@ function synchronizeOneShard (database, shard, planId, leader) {
574
574
shard ) ;
575
575
}
576
576
if ( ok ) {
577
- console . info ( 'synchronizeOneShard: synchronization worked for shard' ,
577
+ console . debug ( 'synchronizeOneShard: synchronization worked for shard' ,
578
578
shard ) ;
579
579
} else {
580
580
throw 'Did not work for shard ' + shard + '.' ;
@@ -1410,13 +1410,13 @@ function setupReplication () {
1410
1410
var config = { 'endpoint' : endpoint , 'includeSystem' : false ,
1411
1411
'incremental' : false , 'autoStart' : true ,
1412
1412
'requireFromPresent' : true } ;
1413
- console . info ( 'Starting synchronization...' ) ;
1413
+ console . debug ( 'Starting synchronization...' ) ;
1414
1414
var res = rep . sync ( config ) ;
1415
- console . info ( 'Last log tick: ' + res . lastLogTick +
1415
+ console . debug ( 'Last log tick: ' + res . lastLogTick +
1416
1416
', starting replication...' ) ;
1417
1417
rep . applier . properties ( config ) ;
1418
1418
var res2 = rep . applier . start ( res . lastLogTick ) ;
1419
- console . info ( 'Result of replication start: ' + res2 ) ;
1419
+ console . debug ( 'Result of replication start: ' + res2 ) ;
1420
1420
}
1421
1421
} catch ( err ) {
1422
1422
console . error ( 'Could not set up replication for database ' , database , JSON . stringify ( err ) ) ;
@@ -1753,7 +1753,7 @@ var bootstrapDbServers = function (isRelaunch) {
1753
1753
var r = global . ArangoClusterComm . wait ( ops [ i ] ) ;
1754
1754
1755
1755
if ( r . status === 'RECEIVED' ) {
1756
- console . info ( 'bootstraped DB server %s' , dbServers [ i ] ) ;
1756
+ console . debug ( 'bootstraped DB server %s' , dbServers [ i ] ) ;
1757
1757
} else if ( r . status === 'TIMEOUT' ) {
1758
1758
console . error ( 'cannot bootstrap DB server %s: operation timed out' , dbServers [ i ] ) ;
1759
1759
result = false ;
@@ -1898,9 +1898,9 @@ function rebalanceShards () {
1898
1898
}
1899
1899
}
1900
1900
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 ) ;
1904
1904
1905
1905
// Compute total weight for each DBServer:
1906
1906
var totalWeight = [ ] ;
@@ -1937,7 +1937,7 @@ function rebalanceShards () {
1937
1937
toServer : emptiest } ;
1938
1938
var msg = moveShard ( todo ) ;
1939
1939
if ( msg === '' ) {
1940
- console . info ( 'rebalanceShards: moveShard(' , todo , ')' ) ;
1940
+ console . debug ( 'rebalanceShards: moveShard(' , todo , ')' ) ;
1941
1941
totalWeight [ last ] . weight -= shardInfo . weight ;
1942
1942
totalWeight [ 0 ] . weight += shardInfo . weight ;
1943
1943
totalWeight = _ . sortBy ( totalWeight , x => x . weight ) ;
0 commit comments