basho/basho_bench

http_raw error: ...{function_clause, [{ibrowse_http_client,send_req_1,...

RobertLowe opened this issue · 1 comments

mailmark thread: http://riak.markmail.org/thread/hlzuyhpbrmezk4kg

the http_raw driver doesn't seem to be working for me

  root@staging:/root/basho_bench# erl 
  Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
  Eshell V5.8.4  (abort with ^G)

  root@staging:/root/basho_bench# curl -v http://10.1.1.101:8089/riak/test
  * About to connect() to 10.1.1.101 port 8089 (#0)
  *   Trying 10.1.1.101... connected
  * Connected to 10.1.1.101 (10.1.1.101) port 8089 (#0)
  > GET /riak/test HTTP/1.1
  > User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
  > Host: 10.1.1.101:8089
  > Accept: */*
  > 
  < HTTP/1.1 200 OK
  < Vary: Accept-Encoding
  < Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
  < Date: Wed, 07 Mar 2012 00:24:38 GMT
  < Content-Type: application/json
  < Content-Length: 422
  < 
  * Connection #0 to host 10.1.1.101 left intact
  * Closing connection #0
  {"props":{"name":"test","allow_mult":false,"basic_quorum":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"dw":"quorum","last_write_wins":false,"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"n_val":3,"notfound_ok":true,"old_vclock":86400,"postcommit":[],"pr":0,"precommit":[],"pw":0,"r":"quorum","rw":"quorum","small_vclock":50,"w":"quorum","young_vclock":20}}

Error:

=ERROR REPORT==== 7-Mar-2012::00:16:23 ===
** Generic server <0.74.0> terminating 
** Last message in was {send_req,
                           {{url,undefined,"10.1.1.101",8089,undefined,
                                undefined,"/riak/test/3900",undefined},
                            [],get,[],
                            [{response_format,binary}],
                            5000}}
** When Server state == {state,"10.1.1.101",8089,undefined,#Ref<0.0.0.188>,
                               false,undefined,[],false,undefined,false,[],
                               {[],[]},
                               undefined,idle,undefined,<<>>,0,0,[],undefined,
                               undefined,undefined,undefined,false,undefined,
                               undefined,<<>>,undefined,false,undefined,0,
                               undefined}
** Reason for termination == 
** {function_clause,
       [{ibrowse_http_client,send_req_1,
            [{<0.64.0>,#Ref<0.0.0.192>},
             {url,undefined,"10.1.1.101",8089,undefined,undefined,
                 "/riak/test/3900",undefined},
             [],get,[],
             [{response_format,binary}],
             5000,
             {state,"10.1.1.101",8089,undefined,#Ref<0.0.0.188>,false,
                 undefined,[],false,undefined,false,[],
                 {[],[]},
                 undefined,idle,undefined,<<>>,0,0,[],undefined,undefined,
                 undefined,undefined,false,undefined,undefined,<<>>,undefined,
                 false,undefined,0,undefined}]},
        {gen_server,handle_msg,5},
        {proc_lib,init_p_do_apply,3}]}

test.config:

{mode, max}.
{duration, 1}.
{concurrent, 3}.
{driver, basho_bench_driver_http_raw}.
{key_generator, {int_to_str, {uniform_int, 10000}}}.
{value_generator, {fixed_bin, 10000}}.
{http_raw_ips, ["10.1.1.101"]}.
{http_raw_port, 8089}.
{http_raw_path, "/riak/test"}.
{operations, [{get, 1}, {update, 1}]}. 

Any thoughts?

Nevermind fixed by pull #25