Timeout?

Kevin Burton rkevinburton at charter.net
Sun Feb 10 16:20:05 EST 2013


I have a CorrugatedIron application that sometimes I get a failure with some
of my MapReduce queries and the ErrorMessage returns:

 

Query failed with Riak returned an error. Code '0'. Message:
{"phase":0,"error":"{{timeout,{gen_server,call,[<12371.352.0>,{checkout_to,<
12371.4691.44>},1000]}},{gen_server,call,[riak_kv_js_map,{reserve_vm,<12371.
4691.44>},infinity]}}","input":"{ok,{r_object,<<\"test\">>,<<\"00180013\">>,
[{r_content,{dict,4,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[]
,[],[]},{{[],[],[],[],[],[],[],[],[],[],[[<<\"content-type\">>,97,112,112,10
8,105,99,97,116,105,111,110,47,106,115,111,110],[<<\"X-Riak-VTag\">>,50,116,
55,81,83,70,105,56,98,52,115,75,74,75,52,100,74,76,67,66,81,85]],[[<<\"index
\">>,{<<\"active_bin\">>,<<\"Active\">>},{<<\"definition_bin\">>,<<\"Accesso
ries\">>},{<<\"department_bin\">>,<<\"Accessories &
Makeup\">>},{<<\"productid_bin\">>,<<\"6...\">>}]],...}}},...}],...},...}","
type":"exit","stack":"[{gen_server,call,3,[{file,\"gen_server.erl\"},{line,1
88}]},{riak_kv_js_manager,blocking_dispatch,4,[{file,\"src/riak_kv_js_manage
r.erl\"},{line,250}]},{riak_kv_mrc_map,map_js,3,[{file,\"src/riak_kv_mrc_map
.erl\"},{line,192}]},{riak_kv_mrc_map,process,3,[{file,\"src/riak_kv_mrc_map
.erl\"},{line,140}]},{riak_pipe_vnode_worker,process_input,3,[{file,\"src/ri
ak_pipe_vnode_worker.erl\"},{line,445}]},{riak_pipe_vnode_worker,wait_for_in
put,2,[{file,\"src/riak_pipe_vnode_worker.erl\"},{line,377}]},{gen_fsm,handl
e_msg,...},...]"} - CommunicationError

 

Buried in the error message it seems to indicate that there was a
CommunicationError due to a timeout. So I have a couple of questions about
this situation. One, what can I check to see that my Riak server is running
optimally? Is there a configuration value that I can increase this timeout?
Would I be worth it to try and detect this type of error and retry? Is there
some configuration value that I can have the Riak server automatically
retry, say 'n' time before an error is thrown? I know it is against the
general NoSql philosophy to try to scale up but do I need to start thinking
about better hardware? Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130210/15cb112f/attachment.html>


More information about the riak-users mailing list