Thanks for spotting the "brainos". But even without those, here is a
repeat of the experiment.
erl -pa /usr/local/riak-0.13.0/rel/riak/lib/riak_core-0.13.0/ebin 
/usr/local/riak-0.13.0/rel/riak/lib/riak_kv-0.13.0/ebin 
/usr/local/riak-0.13.0/rel/riak/lib/riakc-1.0.1/ebin 
/usr/local/riak-0.13.0/rel/riak/lib/protobuffs-0.5.0/ebin

Erlang R14B (erts-5.8.1) [source] [smp:16:16] [rq:16] [async-threads:0] [hipe] 
[kernel-poll:false]

Eshell V5.8.1  (abort with ^G)
1> {ok,Pid} = riakc_pb_socket:start_link("123.456.78.90", 8087).
{ok,<0.33.0>}
2> riakc_pb_socket:get(Pid, <<"people">>, <<"chas">>).
{ok,{riakc_obj,<<"people">>,<<"chas">>,
               <<107,206,97,96,96,224,206,96,202,5,82,44,236,70,107,239,
                 100,48,37,50,230,177,50,...>>,
               [{{dict,4,16,16,8,80,48,
                       {[],[],[],[],[],[],[],[],[],[],[],[],...},
                       {{[],[],
                         [[<<"Links">>,
                           {{<<"images">>,<<"abc">>},<<"avatar">>},
                           {{<<"posi"...>>,<<...>>},<<"posi"...>>}]],
                         [],[],[],[],[],[],[],...}}},
                 <<"Charles Blair">>}],
               undefined,undefined}}
3> riakc_pb_socket:get(Pid, <<"oai_test">>,<<"AEP-WYS97">>).
{error,disconnected}
4> 
=ERROR REPORT==== 28-Oct-2010::14:30:25 ===
** Generic server <0.33.0> terminating 
** Last message in was {tcp_closed,#Port<0.913>}
** When Server state == {state,"128.135.53.253",8087,false,false,undefined,
                               undefined,
                               {[],[]},
                               1,[],100}
** Reason for termination == 
** disconnected
** exception error: disconnected
4> 

The directly attached shell also provides an error message:

=ERROR REPORT==== 28-Oct-2010::14:30:25 ===
** Generic server <0.3660.0> terminating
** Last message in was {tcp,#Port<0.2753>,
                            [9|
                             <<10,8,111,97,105,95,116,101,115,116,18,9,65,69,
                               80,45,87,89,83,57,55>>]}
** When Server state == {state,#Port<0.2753>,
                            {riak_client,'r...@128.135.53.253',
                                <<5,45,154,107>>},
                            undefined,undefined}
** Reason for termination ==
** {function_clause,
       [{riakclient_pb,encode,
            [oai_dc,
             {oai_dc,"AEP-WYS97",
                 {{2004,10,28},{17,21,25}},
                 ["aep"],
                 "/storage/aep2003/metadata/oai_dc/oai_dc-AEP-WYS97.xml"}]},
        {riakclient_pb,pack,5},
        {riakclient_pb,iolist,2},
        {riakclient_pb,encode,2},
        {riakclient_pb,pack,5},
        {riakclient_pb,pack,5},
        {riakclient_pb,iolist,2},
        {riakc_pb,encode,1}]}

---

I've repeated this several times with the same result. Trigger the error as 
many times as I want, but in the directly attached shell I can do this 
afterwards:

C:get(<<"oai_test">>, <<"AEP-WYS97">>, 1).
{ok,{r_object,<<"oai_test">>,<<"AEP-WYS97">>,
              [{r_content,{dict,2,16,16,8,80,48,
                                {[],[],[],[],[],[],[],[],[],[],[],[],...},
                                {{[],[],[],[],[],[],[],[],[],[],...}}},
                          {oai_dc,"AEP-WYS97",
                                  {{2004,10,28},{17,21,25}},
                                  ["aep"],
                                  
"/storage/aep2003/metadata/oai_dc/oai_dc-AEP-WYS97.xml"}}],

I can't find the source for riakclient_pb in my distribution to see what might 
be going on:

% find riak-0.13.0 -name riakclient_pb"*"
riak-0.13.0/deps/riakc/ebin/riakclient_pb.beam
riak-0.13.0/deps/riakc/include/riakclient_pb.hrl
riak-0.13.0/rel/riak/lib/riakc-1.0.1/ebin/riakclient_pb.beam
riak-0.13.0/rel/riak/lib/riakc-1.0.1/include/riakclient_pb.hrl


_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to