← Back to team overview

graphite-dev team mailing list archive

[Question #228438]: Values written randomly differ from values read

 

New question #228438 on Graphite:
https://answers.launchpad.net/graphite/+question/228438

I don't understand why this is happening.  It's random, and not happening consistently.  Maybe it's a product of internal rounding, floats to int conversions, or something like that.

My aggregation method is "last" for this pattern.

I write the data to graphite here (the numeric value only):

D, [2013-05-07T15:05:00.871314 #49343] DEBUG -- : TS: 1367964300

I sleep for 60s in the code, and then I pull the last 10 data points:

D, [2013-05-07T15:06:00.885138 #49343] DEBUG -- : Result body was [{"target": "XXX.YYY.ZZZ.graphite.avail", "datapoints": [[null, 1367963820], [null, 136796388
0], [null, 1367963940], [1367964000.0, 1367964000], [null, 1367964060], [null, 1367964120], [null, 1367964180], [null, 1367964240], [1367964301.0, 1367964300], [null, 13
67964360]]}]

The null data points are fine, as I just didn't write anything there, but on the point I did write, the value is not the same as the one I wrote:

[1367964301.0, 1367964300]

Why is this value sometimes being incremented by 1.0?

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.