Error On Riak Search

Jorge Garrido gomez zgbjgg at gmail.com
Mon Sep 22 19:14:31 EDT 2014


Hello, 

Recenlty we experiment an error on our riak cluster related to riak search:

2014-09-20 14:25:36 =ERROR REPORT====
** Generic server <0.29307.896> terminating 
** Last message in was {tcp,#Port<0.16938821>,<<0,0,0,128,27,10,115,40,112,104,97,115,101,58,112,104,97,115,101,49,32,65,78,68,32,116,121,112,101,95,112,114,111,102,105,108,101,58,78,111,116,101,115,32,65,78,68,32,97,99,116,105,118,101,58,116,114,117,101,32,65,78,68,32,105,115,95,99,111,108,117,109,110,58,116,114,117,101,32,65,78,68,32,98,114,111,111,116,58,100,56,100,98,56,51,102,53,55,100,99,49,52,99,51,49,56,55,101,56,55,98,102,55,56,48,48,52,97,51,55,99,41,18,6,115,101,97,114,99,104,24,20>>}
** When Server state == {state,#Port<0.16938821>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_kv_pb_bucket,{state,{riak_client,'riakliveprod1 at 10.136.89.100',undefined},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,'riakliveprod1 at 10.136.89.100',undefined}}},{riak_kv_pb_csbucket,{state,{riak_client,'riakliveprod1 at 10.136.89.100',undefined},undefined,undefined,undefined,0}},{riak_kv_pb_index,{state,{riak_client,'riakliveprod1 at 10.136.89.100',undefined},undefined,undefined,undefined,0}},{riak_kv_pb_mapred,{state,undefined,undefined}},{riak_kv_pb_object,{state,{riak_client,'riakliveprod1 at 10.136.89.100',undefined},undefined,undefined,<<0,0,0,0>>}},{riak_search_pb_query,{state,{riak_search_client,{riak_client,'riakliveprod1 at 10.136.89.100',undefined}}}}],<<0,0,0,128,27,10,115,40,112,104,97,115,101,58,112,104,97,115,101,49,32,65,78,68,32,116,121,112,101,95,112,114,111,102,105,108,101,58,78,111,116,101,115,32,65,78,68,32,97,99,116,105,118,101,58,116,114,117,101,32,65,78,68,32,105,115,95,99,111,108,117,109,110,58,116,114,117,101,32,65,78,68,32,98,114,111,111,116,58,100,56,100,98,56,51,102,53,55,100,99,49,52,99,51,49,56,55,101,56,55,98,102,55,56,48,48,52,97,51,55,99,41,18,6,115,101,97,114,99,104,24,20>>,{buffer,[],0,1024}}
** Reason for termination == 
** {error,function_clause,[{riak_indexed_doc,to_pairs,[<<"id">>,{error,timeout},all],[{file,"src/riak_indexed_doc.erl"},{line,110}]},{riak_search_pb_query,'-encode_results/3-lc$^1/1-0-',3,[{file,"src/riak_search_pb_query.erl"},{line,110}]},{riak_search_pb_query,'-encode_results/3-lc$^1/1-0-',3,[{file,"src/riak_search_pb_query.erl"},{line,112}]},{riak_search_pb_query,encode_results,3,[{file,"src/riak_search_pb_query.erl"},{line,109}]},{riak_search_pb_query,process,2,[{file,"src/riak_search_pb_query.erl"},{line,81}]},{riak_api_pb_server,process_message,4,[{file,"src/riak_api_pb_server.erl"},{line,223}]},{riak_api_pb_server,handle_message,3,[{file,"src/riak_api_pb_server.erl"},{line,200}]},{riak_api_pb_server,decode_buffer,1,[{file,"src/riak_api_pb_server.erl"},{line,172}]}]}
2014-09-20 14:25:36 =CRASH REPORT====
  crasher:
    initial call: riak_api_pb_server:init/1
    pid: <0.29307.896>
    registered_name: []
    exception exit: {{error,function_clause,[{riak_indexed_doc,to_pairs,[<<"id">>,{error,timeout},all],[{file,"src/riak_indexed_doc.erl"},{line,110}]},{riak_search_pb_query,'-encode_results/3-lc$^1/1-0-',3,[{file,"src/riak_search_pb_query.erl"},{line,110}]},{riak_search_pb_query,'-encode_results/3-lc$^1/1-0-',3,[{file,"src/riak_search_pb_query.erl"},{line,112}]},{riak_search_pb_query,encode_results,3,[{file,"src/riak_search_pb_query.erl"},{line,109}]},{riak_search_pb_query,process,2,[{file,"src/riak_search_pb_query.erl"},{line,81}]},{riak_api_pb_server,process_message,4,[{file,"src/riak_api_pb_server.erl"},{line,223}]},{riak_api_pb_server,handle_message,3,[{file,"src/riak_api_pb_server.erl"},{line,200}]},{riak_api_pb_server,decode_buffer,1,[{file,"src/riak_api_pb_server.erl"},{line,172}]}]},[{gen_server,terminate,6,[{file,"gen_server.erl"},{line,747}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
    ancestors: [riak_api_pb_sup,riak_api_sup,<0.272.0>]
    messages: []
    links: [<0.276.0>,#Port<0.16938821>]
    dictionary: [{random_seed,{29569,23547,27895}}]
    trap_exit: false
    status: running
    heap_size: 4181
    stack_size: 24
    reductions: 5449716722
  neighbours:
2014-09-20 14:25:36 =SUPERVISOR REPORT====
     Supervisor: {local,riak_api_pb_sup}
     Context:    child_terminated
     Reason:     {error,function_clause,[{riak_indexed_doc,to_pairs,[<<"id">>,{error,timeout},all],[{file,"src/riak_indexed_doc.erl"},{line,110}]},{riak_search_pb_query,'-encode_results/3-lc$^1/1-0-',3,[{file,"src/riak_search_pb_query.erl"},{line,110}]},{riak_search_pb_query,'-encode_results/3-lc$^1/1-0-',3,[{file,"src/riak_search_pb_query.erl"},{line,112}]},{riak_search_pb_query,encode_results,3,[{file,"src/riak_search_pb_query.erl"},{line,109}]},{riak_search_pb_query,process,2,[{file,"src/riak_search_pb_query.erl"},{line,81}]},{riak_api_pb_server,process_message,4,[{file,"src/riak_api_pb_server.erl"},{line,223}]},{riak_api_pb_server,handle_message,3,[{file,"src/riak_api_pb_server.erl"},{line,200}]},{riak_api_pb_server,decode_buffer,1,[{file,"src/riak_api_pb_server.erl"},{line,172}]}]}
     Offender:   [{pid,<0.29307.896>},{name,undefined},{mfargs,{riak_api_pb_server,start_link,undefined}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]


After that, our riak erlang client throw an error on each search, 

 the next are the configuration for our cluster:

Riak version 1.4.2.
Cluster with 4 nodes.
Enable search on all nodes.
All default settings on vm.args and app.config

I hope you can help us!

Thanks 





More information about the riak-users mailing list