Hi!
I've just tried to put an object without a key as described in the docs, but
this feature doesn't seem to work (sasl-error.log attached):
==========================================
1> Object = riakc_obj:new(<<"boss_db_test_parent_models">>, undefined,
<<"first">>).
{riakc_obj,<<"boss_db_test_parent_models">>,undefined,
undefined,[],undefined,<<"first">>}
2> {ok, Conn} = riakc_pb_socket:start_link("testhost", 8087).
{ok,<0.38.0>}
3> riakc_pb_socket:put(Conn, Object).
=ERROR REPORT==== 7-May-2011::14:34:21 ===
** Generic server <0.38.0> terminating
** Last message in was {tcp_closed,#Port<0.1131>}
** When Server state ==
{state,"testhost",8087,false,false,undefined,undefined,
{[],[]},
1,[],infinity,100}
** Reason for termination ==
** disconnected
** exception exit: disconnected
==========================================
With a key provided everything works ok.
Can it be a server issue?
BR,
Dmitry
=ERROR REPORT==== 7-May-2011::17:58:31 ===
** Generic server <0.27181.1> terminating
** Last message in was {tcp,#Port<0.11652>,
[11|
<<10,26,98,111,115,115,95,100,98,95,116,101,115,
116,95,112,97,114,101,110,116,95,109,111,100,
101,108,115,34,7,10,5,102,105,114,115,116,56,1>>]}
** When Server state == {state,#Port<0.11652>,
{riak_client,'[email protected]',<<5,16,190,213>>},
undefined,undefined}
** Reason for termination ==
** {function_clause,[{riak_object,new,
[<<"boss_db_test_parent_models">>,undefined,
<<>>]},
{riak_kv_pb_socket,process_message,2},
{riak_kv_pb_socket,handle_info,2},
{gen_server2,handle_msg,7},
{proc_lib,init_p_do_apply,3}]}
=CRASH REPORT==== 7-May-2011::17:58:31 ===
crasher:
initial call: gen:init_it/6
pid: <0.27181.1>
registered_name: []
exception exit: {function_clause,[{riak_object,new,[<<"boss_db_test_parent_models">>,undefined,<<>>]},{riak_kv_pb_socket,process_message,2},{riak_kv_pb_socket,handle_info,2},{gen_server2,handle_msg,7},{proc_lib,init_p_do_apply,3}]}
in function gen_server2:terminate/6
in call from proc_lib:init_p_do_apply/3
ancestors: [riak_kv_pb_socket_sup,riak_kv_sup,<0.134.0>]
messages: []
links: [<0.137.0>,#Port<0.11652>]
dictionary: []
trap_exit: false
status: running
heap_size: 233
stack_size: 24
reductions: 443
neighbours:
=SUPERVISOR REPORT==== 7-May-2011::17:58:31 ===
Supervisor: {local,riak_kv_pb_socket_sup}
Context: child_terminated
Reason: {function_clause,[{riak_object,new,[<<"boss_db_test_parent_models">>,undefined,<<>>]},{riak_kv_pb_socket,process_message,2},{riak_kv_pb_socket,handle_info,2},{gen_server2,handle_msg,7},{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,<0.27181.1>},{name,undefined},{mfa,{riak_kv_pb_socket,start_link,[]}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com