Timeout in precommit hook

Sean Cribbs sean at basho.com
Fri Oct 14 08:22:39 EDT 2011


I would be interested to see what the format of the object is after it has
passed through your precommit hook.  We recently fixed some bugs related to
the JSON format of riak_objects that might result in an unclean round-trip
through the JavaScript VM. That is, the format coming out is not the same as
went in.

Could you do the first step (store a new object through your precommit
hook), and then fetch it by attaching to the console?  Here's what you can
do on the console:

1> {ok, C} = riak:local_client().
2> rp(C:get(<<"bucket">>,<<"key">>)).

Of course, replace "bucket" and "key" as appropriate for your object.

On Fri, Oct 14, 2011 at 3:57 AM, Hal Eisen <eisen at dunhackin.org> wrote:

> I made progress, thanks to Russell who answered my email the other day.
> I've got a simple javascript precommit hook installed and it seems to
> work fine, most of the time.  However, it will randomly timeout.  There
> aren't any interesting messages in any of the logs.  I am able to store
> a key/value pair one minute, but then not be able to store the same pair
> in the next minute.
> Where should I be looking to get more info?  Are there any "safe"
> operations, or operations that are discouraged in precommit hooks?
> Thanks,
> Hal
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Sean Cribbs <sean at basho.com>
Developer Advocate
Basho Technologies, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20111014/754030b7/attachment.html>

More information about the riak-users mailing list