From 3ec834b2e34ba8e1ec4fec0d62dc506ea4e503cc Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 5 Jul 2021 11:41:09 +0300 Subject: [PATCH] improve logs and error messages --- blockstore/splitstore/splitstore.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index bcc16db73..d54c66a70 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -826,7 +826,7 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error { s.txnLk.Unlock() // 1. mark reachable objects by walking the chain from the current epoch to the boundary epoch - log.Info("marking reachable blocks") + log.Info("marking reachable objects") startMark := time.Now() var count int64 @@ -841,7 +841,7 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error { }) if err != nil { - return xerrors.Errorf("error marking hot objects: %w", err) + return xerrors.Errorf("error marking: %w", err) } if count > s.markSetSize { @@ -1066,11 +1066,11 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error { // 3. copy the cold objects to the coldstore -- if we have one if !s.cfg.DiscardColdBlocks { - log.Info("moving cold blocks to the coldstore") + log.Info("moving cold objects to the coldstore") startMove := time.Now() err = s.moveColdBlocks(cold) if err != nil { - return xerrors.Errorf("error moving cold blocks: %w", err) + return xerrors.Errorf("error moving cold objects: %w", err) } log.Infow("moving done", "took", time.Since(startMove)) } @@ -1103,7 +1103,7 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error { if err != nil { return xerrors.Errorf("error purging cold blocks: %w", err) } - log.Infow("purging cold from hotstore done", "took", time.Since(startPurge)) + log.Infow("purging cold objects from hotstore done", "took", time.Since(startPurge)) // we are done; do some housekeeping s.gcHotstore()