Hi Doug,

First, my apologies.  I confused two email responses I was writing, and that's 
why my previous e-mail was a bit out of context.

I've loaded your backup file into a locally built cluster here off of the Riak 
1.2 branch, but I'm still unable to reproduce the issue using the following 
map/reduce command:

curl -XPOST http://localhost:8098/mapred -H 'Content-Type: application/json' -d 
'{"inputs":[ [ "aaaaaaaa-50d7-4536-9048-87ef2e48ddda", 
"key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71" ] ], 
"query":[{"map":{"language":"erlang","module":"riak_kv_mapreduce","function":"map_object_value"}}
 ] }'

Can you please provide which operating system, build, and package version of 
Riak you are running?

- Chris 

-- 
Christopher Meiklejohn
Software Engineer
Basho Technologies, Inc.



On Friday, August 16, 2013 at 1:23 AM, Christopher Meiklejohn wrote:

> Hi Doug,
> 
> Can you provide more information as to how you build the image with Vagrant 
> so I can try to reproduce it? The configuration alone isn't going to be 
> enough as this appears to be a systems related issue.
> 
> - Chris 
> 
> -- 
> Christopher Meiklejohn
> Software Engineer
> Basho Technologies, Inc.
> 
> 
> 
> On Friday, August 16, 2013 at 1:20 AM, Doug Read wrote:
> 
> > Hi Chris,
> > 
> > I made a riak-admin backup of the key which reproduces the issue. I was 
> > wondering if you could give me some direction of how to debug the issue.
> > 
> > thanks
> > doug
> > 
> > 
> > 
> > On Thu, Aug 15, 2013 at 3:41 PM, Chris Meiklejohn <cmeiklej...@basho.com 
> > (mailto:cmeiklej...@basho.com)> wrote:
> > > The best guess I have at this point is probably something related to 
> > > character encoding, but without a reproduction case, I'm not able to 
> > > debug it any further.
> > > 
> > > Good luck with the upgrade tonight! 
> > > 
> > > - Chris
> > > 
> > > 
> > > On Thu, Aug 15, 2013 at 3:39 PM, Doug Read <doug.r...@qnary.com 
> > > (mailto:doug.r...@qnary.com)> wrote:
> > > > I redirected the output of curl into a file on an ubuntu box. I am 
> > > > upgrading the cluster to 1.4.1 tonight. To your point I PUT the value 
> > > > into the key locally (3 node cluster) and couldn't reproduce either. 
> > > > Also i am turning on the java vm logging. 
> > > > 
> > > > 
> > > > On Thu, Aug 15, 2013 at 3:33 PM, Chris Meiklejohn 
> > > > <cmeiklej...@basho.com (mailto:cmeiklej...@basho.com)> wrote:
> > > > > Hi Doug,
> > > > > 
> > > > > I've configured a Riak 1.2 cluster, and run the aforementioned 
> > > > > map-reduce job in Erlang and I can't trigger the crash. I'm getting 
> > > > > the expected results of the map/reduce job. How did you send me the 
> > > > > object that you provided off-list? 
> > > > > 
> > > > > - Chris
> > > > > 
> > > > > 
> > > > > On Thu, Aug 15, 2013 at 12:36 PM, Chris Meiklejohn 
> > > > > <cmeiklej...@basho.com (mailto:cmeiklej...@basho.com)> wrote:
> > > > > > Hi Doug,
> > > > > > 
> > > > > > Can you provide a sample of the JSON that you're storing in these 
> > > > > > objects? It appears that mochijson2's tokenizer is crashing because 
> > > > > > it thinks the JSON is not valid, where the Spidermonkey parsing is 
> > > > > > succeeding. 
> > > > > > 
> > > > > > - Chris
> > > > > > 
> > > > > > 
> > > > > > On Wed, Aug 14, 2013 at 10:58 AM, Doug Read <doug.r...@qnary.com 
> > > > > > (mailto:doug.r...@qnary.com)> wrote:
> > > > > > > The following MapReduce job fails using javascript but succeeds 
> > > > > > > when using erlang. 
> > > > > > > 
> > > > > > > Riak 1.2.0 2012-0806 Debian x86_64
> > > > > > > 3 nodes, n_val=3
> > > > > > > 
> > > > > > > Riak diag gives large list of 
> > > > > > > [warning] The following preflists do not satisfy the n_val:
> > > > > > > Not really sure what this means but thought i would share. 
> > > > > > > 
> > > > > > > JAVASCRIPT: 
> > > > > > > curl -XPOST http://localhost:8098/mapred -H 'Content-Type: 
> > > > > > > application/json' -d '{"inputs":[ [ 
> > > > > > > "aaaaaaaa-4536-9048-87ef2e48ddda", 
> > > > > > > "key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71" ] ], "query":[ { 
> > > > > > > "map": { "name": "Riak.mapValuesJson", "language": "javascript" } 
> > > > > > > }, { "reduce": { "name": "Riak.filterNotFound", "language": 
> > > > > > > "javascript" } } ] }'
> > > > > > > 
> > > > > > > JAVASCRIPT RESULT:
> > > > > > > {"phase":0,"error":"{{{badmatch,any},[{js_mochijson2,tokenize,2,[{file,\"src/js_mochijson2.erl\"},{line,507}]},{js_mochijson2,decode1,2,[{file,\"src/js_mochijson2.erl\"},{line,277}]},{js_mochijson2,json_decode,2,[{file,\"src/js_mochijson2.erl\"},{line,272}]},{js_driver,eval_js,3,[{file,\"src/js_driver.erl\"},{line,150}]},{riak_kv_js_vm,invoke_js,3,[{file,\"src/riak_kv_js_vm.erl\"},{line,275}]},{riak_kv_js_vm,handle_call,3,[{file,\"src/riak_kv_js_vm.erl\"},{line,144}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,...}]},...]},...}","input":"{ok,{r_object,<<\"aaaaaaaa-50d7-4536-9048-87ef2e48ddda\">>,<<\"key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71\">>,[{r_content,{dict,6,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[[<<\"Links\">>]],[],[],[],[],[],[],[],[[<<\"content-type\">>,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110],[<<\"X-Riak-VTag\">>,54,69,114,82,65,97,76,65,65,73,82,102,48,73,102,104,114,102,102,112,103,109]],[[<
<\
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> 
> "index\">>]],[],[[<<\"X-Riak-Last-Modified\">>|{1375,51580,339577}]],[],[[<<...>>]]}}},...}],...},...}","type":"exit","stack":"[{gen_server,call,3,[{file,\"gen_server.erl\"},{line,188}]},{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/riak_pipe_vnode_worker.erl\"},{line,445}]},{riak_pipe_vnode_worker,wait_for_input,2,[{file,\"src/riak_pipe_vnode_worker.erl\"},{line,377}]},{gen_fsm,handle_msg,7,[{file,\"gen_fsm.erl\"},{line,494}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib...\"},...]}]"}
> > > > > > > 
> > > > > > > 
> > > > > > > ERLANG:
> > > > > > > curl -XPOST http://localhost:8098/mapred -H 'Content-Type: 
> > > > > > > application/json' -d '{"inputs":[ [ 
> > > > > > > "aaaaaaaa-50d7-4536-9048-87ef2e48ddda", 
> > > > > > > "key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71" ] ], 
> > > > > > > "query":[{"map":{"language":"erlang","module":"riak_kv_mapreduce","function":"map_object_value"}}
> > > > > > >  ] }' 
> > > > > > > 
> > > > > > > ERLANG RESULT:
> > > > > > > [{"key":"value"}]
> > > > > > > 
> > > > > > > Any ideas? 
> > > > > > > _______________________________________________
> > > > > > > riak-users mailing list
> > > > > > > riak-users@lists.basho.com (mailto:riak-users@lists.basho.com)
> > > > > > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> > 
> > 
> > 
> > 
> > Attachments: 
> > - bad.bak
> 




_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to