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

initialize ROB with correct metric interval #1211

Merged
merged 1 commit into from
Apr 10, 2019
Merged

initialize ROB with correct metric interval #1211

merged 1 commit into from
Apr 10, 2019

Conversation

replay
Copy link
Contributor

@replay replay commented Jan 24, 2019

Not tested yet

fixes #1196

@@ -43,31 +43,31 @@ func NewAggregator(store Store, cachePusher cache.CachePusher, key schema.AMKey,
case conf.Avg:
if aggregator.sumMetric == nil {
key.Archive = schema.NewArchive(schema.Sum, span)
aggregator.sumMetric = NewAggMetric(store, cachePusher, key, conf.Retentions{ret}, 0, nil, dropFirstChunk)
aggregator.sumMetric = NewAggMetric(store, cachePusher, key, conf.Retentions{ret}, 0, 0, nil, dropFirstChunk)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would we deliberately pass interval=0 and not the correct interval (span) ? even if we don't end up using the value in NewAggMetric() from these calls, this makes the code brittle and likely to break once we start using it for something else.

@Dieterbe Dieterbe force-pushed the fix_1196 branch 2 times, most recently from f1f3de0 to a6145a7 Compare April 10, 2019 09:54
@Dieterbe
Copy link
Contributor

I fixed up this PR. looks good to me now

@Dieterbe Dieterbe changed the title [WIP] initialize ROB with correct metric interval initialize ROB with correct metric interval Apr 10, 2019
@woodsaj
Copy link
Member

woodsaj commented Apr 10, 2019

LGTM. I added a quick fix to address #1201 as well.

@Dieterbe Dieterbe changed the title initialize ROB with correct metric interval initialize ROB with correct metric interval + sync ROB behavior with non-ROB behavior for multiple vals for same timestamp Apr 10, 2019
@Dieterbe
Copy link
Contributor

Dieterbe commented Apr 10, 2019

moved your commit to #1276

@Dieterbe Dieterbe changed the title initialize ROB with correct metric interval + sync ROB behavior with non-ROB behavior for multiple vals for same timestamp initialize ROB with correct metric interval Apr 10, 2019
@Dieterbe Dieterbe merged commit 25c16d3 into master Apr 10, 2019
@Dieterbe Dieterbe deleted the fix_1196 branch April 10, 2019 16:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reorderBuffer.interval is not set correctly
3 participants