mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
log on empty head compaction result (#8037)
Signed-off-by: frbimo <fr.bimo@gmail.com>
This commit is contained in:
parent
73e2ce1bd6
commit
260cd84d8f
|
@ -488,6 +488,12 @@ func (c *LeveledCompactor) Write(dest string, b BlockReader, mint, maxt int64, p
|
||||||
}
|
}
|
||||||
|
|
||||||
if meta.Stats.NumSamples == 0 {
|
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
|
return ulid.ULID{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue