Sometimes integral(multiplySeries(foo.bar,foo.baz)) fails to render.

Bug #1021942 reported by Nicholas Leskiw
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graphite
Fix Committed
Low
Nicholas Leskiw

Bug Description

...
I want to total the time up over the past four hours, so I tried integral(multiplySeries(x,y)) but just get a broken image icon.
Should this work, or am I misunderstanding how this is supposed to work?
...
stack trace:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 104, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return func(requestContext, *args)
  File "/opt/graphite/webapp/graphite/render/functions.py", line 678, in integral
    for val in series:
TypeError: 'NoneType' object is not iterable

Revision history for this message
Nicholas Leskiw (nleskiw) wrote :

looks like multiplySeries returned a single series, but integral expects a list of series.

Changed in graphite:
status: New → Fix Committed
Revision history for this message
Nicholas Leskiw (nleskiw) wrote :

commit 47d90c6ab299b5b4976382021f85f0f7b2a08388
Author: Nicholas Leskiw <email address hidden>
Date: Mon Jul 9 15:31:25 2012 -0500

    Bugfix for https://bugs.launchpad.net/graphite/+bug/1021942

    integral(multiplySeries(x,y)) was failing to render a graph.

    Cause was intergral expects a seriesList, but multiplySeries only
    returned a single series.

Changed in graphite:
assignee: nobody → Nicholas Leskiw (nleskiw)
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.