Skip to content

Instantly share code, notes, and snippets.

@Techmind
Created August 5, 2011 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Techmind/1127162 to your computer and use it in GitHub Desktop.
Save Techmind/1127162 to your computer and use it in GitHub Desktop.
{ok, Client} = riak:client_connect('riak@192.168.11.123').
Mine = riak_object:new(<<"groceries">>, <<"mine">>, ["eggs", "bacon"]).
Yours = riak_object:new(<<"groceries">>, <<"yours">>, ["bread", "bacon"]).
Client:put(Yours, 1).
Client:put(Mine, 1).
Map = fun(G, 'undefined', 'none')->[G] end.
Reduce = fun(Glist, 'none') -> Glist end.
Client:mapred(<<"groceries">>, [{'map', {'qfun', Map}, 'none', false}, {'reduce', {'qfun', Reduce}, 'none', true}]).
// got
=ERROR REPORT==== 5-Aug-2011::13:03:33 ===
** State machine <0.170.0> terminating
** Last event in was {riak_vnode_req_v1,
22835963083295358096932575511191922182123945984,
ignore,
{riak_kv_listkeys_req_v2,<<"groceries">>,53547159,
<0.432.0>}}
** When State == active
** Data == {state,22835963083295358096932575511191922182123945984,
riak_kv_vnode,
{state,22835963083295358096932575511191922182123945984,
riak_kv_innostore_backend,
{state,<<"_22835963083295358096932575511191922182123945984">>,
#Port<0.3235>},
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]}}},
false},
undefined,none,60000}
** Reason for termination =
** {'function not exported',
[{riak_kv_innostore_backend,fold_bucket_keys,
[{state,<<"_22835963083295358096932575511191922182123945984">>,
#Port<0.3235>},
<<"groceries">>,#Fun<riak_kv_vnode.3.89464844>]},
{riak_kv_vnode,do_list_keys,6},
{riak_kv_vnode,handle_command,3},
{riak_core_vnode,vnode_command,3},
{gen_fsm,handle_msg,7},
{proc_lib,init_p_do_apply,3}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment