mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: fix inconsistencies in error logs
This commit is contained in:
parent
148422bcba
commit
681dfb7485
1 changed files with 4 additions and 2 deletions
|
@ -844,7 +844,9 @@ func mustGetMinTimestampForCompositeIndex(metadataDir string, isEmptyDB bool) in
|
|||
if err == nil {
|
||||
return minTimestamp
|
||||
}
|
||||
if !os.IsNotExist(err) {
|
||||
logger.Errorf("cannot read minTimestampForCompositeIndex, so trying to re-create it; error: %s", err)
|
||||
}
|
||||
date := time.Now().UnixNano() / 1e6 / msecPerDay
|
||||
if !isEmptyDB {
|
||||
// The current and the next day can already contain non-composite indexes,
|
||||
|
@ -1616,7 +1618,7 @@ func (s *Storage) add(rows []rawRow, mrs []MetricRow, precisionBits uint8) ([]ra
|
|||
atomic.AddUint64(&s.slowRowInserts, slowInsertsCount)
|
||||
}
|
||||
if firstWarn != nil {
|
||||
logger.Errorf("warn occurred during rows addition: %s", firstWarn)
|
||||
logger.Warnf("warn occurred during rows addition: %s", firstWarn)
|
||||
}
|
||||
rows = rows[:rowsLen+j]
|
||||
|
||||
|
|
Loading…
Reference in a new issue