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@euler)2> C = criak:connect_object(web_common_test_riak@euler).
{pcriak,{riak_client,web_common_test_riak@euler,
                     <<3,162,248,68>>}}
(foo@euler)3> C:new_object(<<"a">>,<<"b">>, [stuff] ).
ok
(foo@euler)4> C:list_keys().
** exception error: undefined function pcriak:list_keys/1
(foo@euler)5> C:list_buckets().
{ok,[<<"a">>]}
(foo@euler)6> C:list_keys(<<"a">>).
{error,timeout,[]}
(foo@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@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to