Skip to content

Commit

Permalink
chore: correct log level for message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidby-influx committed Jan 15, 2025
1 parent ee2cfae commit dfc9f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdb/engine/tsm1/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2366,7 +2366,7 @@ func MoveTsmOnReadErr(err error, log *zap.Logger, ReplaceWithCallback func([]str
// We hit a bad TSM file - rename so the next compaction can proceed.
if ok := errors.As(err, &blockReadErr); ok {
path := blockReadErr.file
log.Error("Renaming a corrupt TSM file due to compaction error", zap.String("file", path), zap.Error(err))
log.Info("Renaming a corrupt TSM file due to compaction error", zap.String("file", path), zap.Error(err))
if err := ReplaceWithCallback([]string{path}, nil, nil); err != nil {
log.Info("Error removing bad TSM file", zap.String("file", path), zap.Error(err))
} else if e := os.Rename(path, path+"."+BadTSMFileExtension); e != nil {
Expand Down

0 comments on commit dfc9f8b

Please sign in to comment.