delete doe not work

Justin Sheehy justin at basho.com
Wed Dec 9 21:20:08 EST 2009


On Wed, Dec 9, 2009 at 5:31 PM, Todd Lumley <todd at thesolutionstudio.com> wrote:
> I'm also curious if anyone has had success in Deleting bucket key's via
> JIAK.  no luck here.
> is there a fix?

I do it all the time.  An example using the Python client:

>>> client = Jiak('127.0.0.1', 8098, 'jiak')
>>> obj = client.store('jiak_example', 'doctestkey', {'foo':2})
>>> client.fetch('jiak_example', 'doctestkey').get('object', {}).get('foo')
2
>>> client.delete('jiak_example', 'doctestkey')
>>> client.fetch('jiak_example', 'doctestkey').get('object', {}).get('foo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'get'
>>>

I am less fluent in PHP than in some of the other client languages
available, but from the trace above I think that I have found a bug in
jiak.php and checked in a change.  Please give it another try using a
fresh jiak.php from the current tip.

-Justin




More information about the riak-users mailing list