Understanding an intermittent mapreduce error

Toby Corkindale toby at dryft.net
Tue Jun 17 01:17:08 EDT 2014


> rp(rpc:multicall(riak_kv_mapred_json, module_info, [exports])).
{[[{parse_inputs,1},
   {parse_query,1},
   {dejsonify_not_found,1},
   {module_info,0},
   {module_info,1},
   {jsonify_not_found,1},
   {jsonify_bkeys,2},
   {parse_request,1},
   {jsonify_pipe_error,2}],
  {badrpc,{'EXIT',{undef,[{riak_kv_mapred_json,module_info,
                                               [exports],
                                               []},
                          {rpc,'-handle_call_call/6-fun-0-',5,
                               [{file,"rpc.erl"},{line,203}]}]}}},
  {badrpc,{'EXIT',{undef,[{riak_kv_mapred_json,module_info,
                                               [exports],
                                               []},
                          {rpc,'-handle_call_call/6-fun-0-',5,
                               [{file,"rpc.erl"},{line,203}]}]}}},
  [{parse_inputs,1},
   {parse_query,1},
   {dejsonify_not_found,1},
   {module_info,0},
   {module_info,1},
   {jsonify_not_found,1},
   {jsonify_bkeys,2},
   {parse_request,1},
   {jsonify_pipe_error,2}],
  [{parse_inputs,1},
   {parse_query,1},
   {dejsonify_not_found,1},
   {module_info,0},
   {module_info,1},
   {jsonify_not_found,1},
   {jsonify_bkeys,2},
   {parse_request,1},
   {jsonify_pipe_error,2}],
  [{parse_inputs,1},
   {parse_query,1},
   {module_info,0},
   {module_info,1},
   {jsonify_not_found,1},
   {dejsonify_not_found,1},
   {jsonify_bkeys,2},
   {parse_request,1},
   {jsonify_pipe_error,2}]],
 []}
ok


On 17 June 2014 11:19, Sean Cribbs <sean at basho.com> wrote:
> Sorry for the typo, replace 'rr' with 'rp' on the front of that.
>
> Sean Cribbs
>
>> On Jun 16, 2014, at 7:59 PM, Toby Corkindale <toby at dryft.net> wrote:
>>
>> Hi Sean,
>> Thanks for your response -- sorry about the delay. I'm in a far away timezone.
>> The response I get is:
>> Eshell V5.9.1  (abort with ^G)
>> (riak at riak01.internal)1> rr(rpc:multicall(riak_kv_mapred_json,
>> module_info, [exports])).
>> {error,invalid_filename}
>> (riak at riak01.internal)2>
>>
>> -Toby
>>
>>> On 16 June 2014 23:22, Sean Cribbs <sean at basho.com> wrote:
>>> Toby,
>>>
>>> Could you try this?
>>>
>>> 1. Run `riak attach`
>>> 2. Type into the console: rr(rpc:multicall(riak_kv_mapred_json, module_info,
>>> [exports])).
>>> 3. Paste back to me what the result is
>>>
>>> Cheers,
>>>
>>>
>>>> On Mon, Jun 16, 2014 at 3:31 AM, Toby Corkindale <toby at dryft.net> wrote:
>>>>
>>>> Hi,
>>>> I'm trying to understand why I'm getting an intermittent error on a
>>>> particular map-reduce call to Riak 1.4.9.
>>>> The query isn't particularly complicated, and filters mean it should
>>>> only be running over ~100 keys, and returning <10 each time, so I
>>>> don't think I should be hitting any stack or memory limits in the JS
>>>> VMs.
>>>>
>>>> It fails frequently, but not every time. When pointing it at just a
>>>> single Riak server for debugging purposes, it fails around 30% of the
>>>> time.
>>>> The error returned is as follows:
>>>>
>>>> {
>>>>   "input" : null,
>>>>   "stack" : null,
>>>>   "phase" : 1,
>>>>   "error" :
>>>> "{undef,[{riak_kv_mapred_json,jsonify_not_found,[{struct,[{<<\"email\">>,<<\"user at example.com\">>},{<<\"attributes\">>,[<<\"someattributes\">>,<<\"somemoreattributes\">>,<<\"w...\">>,...]},...]}],...},...]}",
>>>>   "type" : null
>>>> }
>>>>
>>>>
>>>> There are no errors in the Riak server logs.
>>>>
>>>>
>>>> Thanks,
>>>> Toby
>>>>
>>>> _______________________________________________
>>>> riak-users mailing list
>>>> riak-users at lists.basho.com
>>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>>
>>>
>>>
>>>
>>> --
>>> Sean Cribbs <sean at basho.com>
>>> Software Engineer
>>> Basho Technologies, Inc.
>>> http://basho.com/
>>
>>
>>
>> --
>> Turning and turning in the widening gyre
>> The falcon cannot hear the falconer
>> Things fall apart; the center cannot hold
>> Mere anarchy is loosed upon the world



-- 
Turning and turning in the widening gyre
The falcon cannot hear the falconer
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world




More information about the riak-users mailing list