Browse Source

log on empty head compaction result (#8037)

Signed-off-by: frbimo <fr.bimo@gmail.com>
pull/8056/head
frbimo 4 years ago committed by GitHub
parent
commit
260cd84d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tsdb/compact.go

6
tsdb/compact.go

@ -488,6 +488,12 @@ func (c *LeveledCompactor) Write(dest string, b BlockReader, mint, maxt int64, p
}
if meta.Stats.NumSamples == 0 {
level.Info(c.logger).Log(
"msg", "write block resulted in empty block",
"mint", meta.MinTime,
"maxt", meta.MaxTime,
"duration", time.Since(start),
)
return ulid.ULID{}, nil
}

Loading…
Cancel
Save