InvalidTimeInterval exception during DST switch (graphite 0.99)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graphite |
Fix Released
|
High
|
Unassigned |
Bug Description
It's now 3:55 AM in New York and I get the following error when trying to get a metric from graphite:
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
seriesList = evaluateTarget(
File "/usr/lib/
result = evaluateTokens(
File "/usr/lib/
return evaluateTokens(
File "/usr/lib/
return fetchData(
File "/usr/lib/
dbResults = dbFile.fetch( timestamp(
File "/usr/lib/
(timeInfo,
File "/usr/lib/
return file_fetch(fh, fromTime, untilTime)
File "/usr/lib/
raise InvalidTimeInte
InvalidTimeInte
I guess, it has something to do with the fact that 1 hour ago was 1:55 rather than 2:55 (1:59 was followed by 03:00 during a DST switch).
summary: |
- InvalidTimeInterval exception during DST switch + InvalidTimeInterval exception during DST switch (graphite 0.99) |
Changed in graphite: | |
status: | Fix Committed → Fix Released |
0.98 rather than 0.99 but similar issue for switch to British Summer Time:
Traceback (most recent call last): python2. 6/site- packages/ django/ core/handlers/ base.py" , line 111, in get_response webapp/ graphite/ render/ views.py" , line 101, in renderView requestContext, target) webapp/ graphite/ render/ evaluator. py", line 10, in evaluateTarget requestContext, tokens) webapp/ graphite/ render/ evaluator. py", line 21, in evaluateTokens requestContext, tokens.expression) webapp/ graphite/ render/ evaluator. py", line 24, in evaluateTokens requestContext, tokens. pathExpression) webapp/ graphite/ render/ datalib. py", line 212, in fetchData startTime) , timestamp(endTime) ) webapp/ graphite/ storage. py", line 267, in fetch values) = whisper. fetch(self. fs_path, startTime, endTime) python2. 6/site- packages/ whisper. py", line 523, in fetch python2. 6/site- packages/ whisper. py", line 539, in file_fetch rval("Invalid time interval") rval: Invalid time interval
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/
seriesList = evaluateTarget(
File "/opt/graphite/
result = evaluateTokens(
File "/opt/graphite/
return evaluateTokens(
File "/opt/graphite/
return fetchData(
File "/opt/graphite/
dbResults = dbFile.fetch( timestamp(
File "/opt/graphite/
(timeInfo,
File "/usr/lib/
return file_fetch(fh, fromTime, untilTime)
File "/usr/lib/
raise InvalidTimeInte
InvalidTimeInte