graphite-project/carbon — pull request #44 by gpstathis (2012-10-25 16:35:33+00:00)
Title: Carbon to Whisper method call mismatch on 0.9.x branch

While following the installation instructions (http://graphite.wikidot.com/installation), I opted for the approach of cloning the git repos and checking out the 0.9.x branches.

Once everything was up and running, I failed to see any data being imported into the system. Tailing the logs, I saw the following exception being repeatedly thrown:

```
25/10/2012 00:00:01 :: Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 207, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- ---
File "/opt/graphite/lib/carbon/writer.py", line 158, in writeForever
writeCachedDataPoints()
File "/opt/graphite/lib/carbon/writer.py", line 128, in writeCachedDataPoints
settings.WHISPER_FALLOCATE_CREATE)
exceptions.TypeError: create() takes at most 5 arguments (6 given)
```

Turns out that the call to whisper.create() on the 0.9.x is not compatible with the whisper method signature on the same branch.

The fix was pretty straight forward. Once I applied it, I was able to start seeing data coming in.

Let me know if there is something missing.

Regards,

-George