Yes, indeed, that's taken care of it!  Thanks very much, Sean.

---Peter
On Aug 9, 2010, at 5:02 PM, Sean Cribbs wrote:

> Try using the uniform_int_bin key generator. It looks like your key is an 
> integer and so it's not getting encoded correctly by protobuffs.
> 
> Sean Cribbs <[email protected]>
> Developer Advocate
> Basho Technologies, Inc.
> http://basho.com/
> 
> On Aug 9, 2010, at 4:54 PM, Peter Herndon wrote:
> 
>> Hi all,
>> 
>> I'm running into a crash every time I try to run a benchmark using the
>> PB client.  The HTTP raw client works just fine. Can someone give me
>> an idea what the source of the problem might be?  I'm a bit stumped as
>> to where to look.
>> 
>> Thanks very much!
>> 
>> Here's the error output from basho_bench:
>> 
>> =ERROR REPORT==== 9-Aug-2010::16:26:03 ===
>> ** Generic server <0.72.0> terminating
>> ** Last message in was {req,{rpbgetreq,<<"test">>,15821,1}}
>> ** When Server state == {state,{127,0,0,1},
>>                              8087,#Port<0.1287>,undefined,undefined,
>>                              undefined,undefined,
>>                              {[],[]}}
>> ** Reason for termination ==
>> ** {function_clause,[{protobuffs,encode_internal,[2,15821,bytes]},
>>                    {protobuffs,encode,3},
>>                    {riakclient_pb,iolist,2},
>>                    {riakc_pb,encode,1},
>>                    {riakc_pb_socket,send_request,4},
>>                    {riakc_pb_socket,handle_call,3},
>>                    {gen_server,handle_msg,5},
>>                    {proc_lib,init_p_do_apply,3}]}
>> 
>> 
>> And here's my config:
>> 
>> 
>> {mode, max}.
>> 
>> {duration, 10}.
>> 
>> {concurrent, 1}.
>> 
>> {driver, basho_bench_driver_riakc_pb}.
>> 
>> {code_paths, ["deps/stats",
>>             "deps/riakc",
>>             "deps/protobuffs"]}.
>> 
>> {key_generator, {uniform_int, 35000}}.
>> 
>> {value_generator, {fixed_bin, 3}}.
>> 
>> {riakc_pb_ips, [{127,0,0,1}]}.
>> 
>> {riakc_pb_replies, 1}.
>> 
>> {operations, [{get, 1}, {update, 1}]}.
>> 
>> 
>> And here's the crash report from log.sasl.txt:
>> 
>> 
>> =CRASH REPORT==== 9-Aug-2010::16:44:44 ===
>> crasher:
>>   initial call: riakc_pb_socket:init/1
>>   pid: <0.63.0>
>>   registered_name: []
>>   exception exit: {function_clause,
>>                       [{protobuffs,encode_internal,[2,15821,bytes]},
>>                        {protobuffs,encode,3},
>>                        {riakclient_pb,iolist,2},
>>                        {riakc_pb,encode,1},
>>                        {riakc_pb_socket,send_request,4},
>>                        {riakc_pb_socket,handle_call,3},
>>                        {gen_server,handle_msg,5},
>>                        {proc_lib,init_p_do_apply,3}]}
>>     in function  gen_server:terminate/6
>>   ancestors: [<0.62.0>]
>>   messages: []
>>   links: [<0.62.0>,#Port<0.1284>]
>>   dictionary: []
>>   trap_exit: false
>>   status: running
>>   heap_size: 377
>>   stack_size: 24
>>   reductions: 340
>> neighbours:
>>   neighbour: [{pid,<0.62.0>},
>>                 {registered_name,[]},
>>                 {initial_call,{erlang,apply,2}},
>>                 {current_function,{gen,do_call,4}},
>>                 {ancestors,[]},
>>                 {messages,[]},
>>                 {links,[<0.61.0>,<0.63.0>]},
>>                 {dictionary,[{random_seed,{16334,12955,11824}}]},
>>                 {trap_exit,false},
>>                 {status,waiting},
>>                 {heap_size,610},
>>                 {stack_size,23},
>>                 {reductions,139}]
>> 
>> 
>> Thanks very much for your assistance,
>> 
>> ---Peter
>> 
>> _______________________________________________
>> riak-users mailing list
>> [email protected]
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 


_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to