Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

fix the cache bug oppressed stats #721

Merged
merged 1 commit into from
Sep 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mdata/cache/ccache_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (mc *CCacheMetric) searchForward(ctx context.Context, metric string, from,
res.Complete = true
break
}
if ts >= mc.chunks[ts].Next {
if mc.chunks[ts].Next != 0 && ts >= mc.chunks[ts].Next {
log.Warn("CCacheMetric: suspected bug suppressed. searchForward(%q, %d, %d, res) ts is %d while Next is %d", metric, from, until, ts, mc.chunks[ts].Next)
span := opentracing.SpanFromContext(ctx)
span.SetTag("searchForwardBug", true)
Expand Down