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>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>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> 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 >>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >>> >>> >> >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com