From 59ec2a36cd613ff9274da288c04a39dd019659eb Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 23 Oct 2018 14:25:37 -0400 Subject: [PATCH] 14388: Fix log message. When a volume with replication=2 has 15 objects, report them as "15 entries / 2x / 30 replicas", rather than "15 replicas", so the numbers agree with the other logs/stats about replica counts. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- services/keep-balance/balance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/keep-balance/balance.go b/services/keep-balance/balance.go index 5f5f9afdc4..8a06b902fc 100644 --- a/services/keep-balance/balance.go +++ b/services/keep-balance/balance.go @@ -308,9 +308,9 @@ func (bal *Balancer) GetCurrentState(c *arvados.Client, pageSize, bufs int) erro return } for _, mount := range mounts { - bal.logf("%s: add %d replicas to map", mount, len(idx)) + bal.logf("%s: add %d entries to map", mount, len(idx)) bal.BlockStateMap.AddReplicas(mount, idx) - bal.logf("%s: added %d replicas", mount, len(idx)) + bal.logf("%s: added %d entries to map at %dx (%d replicas)", mount, len(idx), mount.Replication, len(idx)*mount.Replication) } bal.logf("mount %s: index done", mounts[0]) }(mounts) -- 2.30.2