Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the AnyEvent-Riak CPAN distribution.

Report information
The Basics
Id: 56714
Status: new
Priority: 0/
Queue: AnyEvent-Riak

People
Owner: Nobody in particular
Requestors: tomas [...] mudrunka.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Fwd: AnyEvent::Riak behaves strangely, please follow the standarts!
Date: Mon, 19 Apr 2010 15:07:26 +0200
To: <bug-AnyEvent-Riak [...] rt.cpan.org>
From: Tomáš Mudruňka <tomas [...] mudrunka.cz>
Hello, i am just trying to get your Riak PM working... (Riak+PERL is usefull combination) I've found few things that are making it unusable... 1.) I am not even able to install it using CPAN: Loading the database... Retrieving package metadata... error: failed to download the following: http://search.cpan.org/src/FRANCKC/AnyEvent-Riak-0.01/META.yml (response: ) error: failed to parse /tmp/bauerbill/pacpan/META.yml/AnyEvent-Riak/0.10.0 error: inform the CPAN author that there is an error in AnyEvent-Riak's META.yml file 2.) for example this code: my $res = $jiak->store({ bucket => 'harvie', key => 'bar', object => { foo => "bar", baz => 1 }, links => [] })->recv; stores data to bucket "harvie" at key "bar", where those data are: {"object":{"baz":1,"foo":"bar"},"bucket":"harvie","links":[],"key":"bar"} so you are storing everything twice! riak itself already contains this (and bit more): "bucket":"harvie","links":[],"key":"bar" and all you should store as data should be only this: {"baz":1,"foo":"bar"} not only that you are storing irelevant informations, but it also breaks compatibility with other Riak drivers! I suggest you to read some Riak documentation. 3.) listing bucket takes sh*tloads of time even for 5 keys in bucket (time in PHP driver is in microseconds): my $keys = $jiak->list_bucket($bucket)->recv; 4.) When i try linkwalk (using exactly the code from documentation or from testsuite), i get such error message: malformed number (no digits after initial minus), at character offset 2 (before "-89x3fEast84AQjXt94d...") at Riak.pm line 124. (the string "-89x3fEast84AQjXt94d..." is different for each try...) 5.) By the way AnyEvent::Riak can be more portable if you will use LWP or something instead of AnyEvent::HTTP. I am pleased that you are trying to create Riak driver for PERL, but PLEASE try to follow the standarts! Thank you wery much :-) Peace Harvie