Riak 1.1.2 timeouts on list_keys

ror at radardisc.co.nz ror at radardisc.co.nz
Mon Jun 11 16:36:57 EDT 2012


I fixed this. Path conflicts had different versions of riak.

Quoting ror at radardisc.co.nz:

> Hi,
>
> Decided to bite the bullet and upgrade to 1.1.2 (Eric Mortiz's  
> previous answer turned of javascript, but the application was still  
> loading).
>
> So i start a node called "web_common_test" (JS turned off, otherwise  
> a basic setup).
>
> Output from application:info().
>
> {riakc,"Riak Client","1.2.1"},
> {riak_kv,"Riak Key/Value Store","1.1.2"},
>
> I start up a node called foo with the same cookie
>
> output from foo
>
> (foo at euler)2> C = criak:connect_object(web_common_test_riak at euler).
> {pcriak,{riak_client,web_common_test_riak at euler,
>                      <<3,162,248,68>>}}
> (foo at euler)3> C:new_object(<<"a">>,<<"b">>, [stuff] ).
> ok
> (foo at euler)4> C:list_keys().
> ** exception error: undefined function pcriak:list_keys/1
> (foo at euler)5> C:list_buckets().
> {ok,[<<"a">>]}
> (foo at euler)6> C:list_keys(<<"a">>).
> {error,timeout,[]}
> (foo at euler)7> C:get_object(<<"a">>,<<"b">>).
> {ok,{r_object,<<"a">>,<<"b">>,
>               [{r_content,{dict,3,16,16,8,80,48,
>                                 {[],[],[],[],[],[],[],[],[],[],[],[],...},
>                                 {{[],[],[],[],[],[],[],[],[],[],...}}},
>                           [stuff]}],
>               [{<<21,181,251,136,79,214,24,45>>,{1,63506651405}},
>                {<<3,162,248,68>>,{1,63506651405}}],
>               {dict,1,16,16,8,80,48,
>                     {[],[],[],[],[],[],[],[],[],[],[],[],[],...},
>                     {{[],[],[],[],[],[],[],[],[],[],[],...}}},
>               undefined}}
>
>
> Line 2 creates a parameterized object I use to speak to the riak_node
> 3 -> create and object
> 5 -> see the bucket exists
> 6 -> Hangs for ages, then timeouts
> 7 -> gets the object!
>
> For example (Client is a parameterized module argument)
> pcriak:list_keys(Bucket) ->
>     Client:list_keys(Bucket).
>
>
> Any ideas why this is happening? I use this function for iterating  
> over buckets
>
> Thanks
>
> Rory
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>






More information about the riak-users mailing list