500 with siblings in Raw interface

Jonathan Lee jonathan_lee at comcast.com
Wed Dec 16 19:13:50 EST 2009


I am running from the current tip and getting 500s when siblings are
present for a particular key.  I believe that this is new behavior as
of the week.  I am about to take a look into the source, but if anyone
else knows off hand what's causing this, it'd be really helpful.  Does
anyone have ideas?  My config and an example are below:

$ cat local.erlenv
{cluster_name, "local"}.
{ring_state_dir, "priv/local/ringstate"}.
{ring_creation_size, 16}.
{gossip_interval, 60000}.
{storage_backend, riak_dets_backend}.
{riak_dets_backend_root, "/riak/priv/local/store"}.
{riak_cookie, hoss}.
{riak_heart_command, "(cd /riak; ./start-restart.sh local-1.erlenv)"}.
{riak_nodename, riak}.
{riak_hostname, "127.0.0.1"}.
{riak_web_ip, "127.0.0.1"}.
{riak_web_port, 8098}.
{jiak_name, "jiak"}.
{raw_name, "raw"}.

$ curl -is localhost:8098/raw/b/k
HTTP/1.1 404 Object Not Found
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Date: Thu, 17 Dec 2009 00:05:09 GMT
Content-Type: text/html
Content-Length: 193

<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not
Found</H1>The requested document was not found on this
server.<P><HR><ADDRESS>mochiweb+webmachine web
server</ADDRESS></BODY></HTML>

$ curl -is -H "Content-Type: application/json" -X PUT -d 'foo'
localhost:8098/raw/b/k
HTTP/1.1 204 No Content
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Date: Thu, 17 Dec 2009 00:05:41 GMT
Content-Type: text/plain
Content-Length: 0

$ curl -is -H "Content-Type: application/json" -X PUT -d 'bar'
localhost:8098/raw/b/k
HTTP/1.1 204 No Content
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Date: Thu, 17 Dec 2009 00:05:46 GMT
Content-Type: application/json
Content-Length: 0

$ curl -is localhost:8098/raw/b/k
HTTP/1.1 200 OK
X-Riak-Vclock: a85hYGBgzmDKBVIsrO/3S2cwJTLmsTJc/Tj3CB9MeOrrs1DhWwhhtuYkhsDaxcgSWQA=
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Link: </raw/b>; rel="up"
Last-Modified: Thu, 17 Dec 2009 00:05:46 GMT
ETag: 4ww1LBJJhCdWUPzSft8GYC
Date: Thu, 17 Dec 2009 00:05:48 GMT
Content-Type: application/json
Content-Length: 3

bar

$ curl  -H "Content-Type: application/json" -X PUT -d
'{"props":{"allow_mult":"true"}}' localhost:8098/raw/b
HTTP/1.1 204 No Content
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Date: Thu, 17 Dec 2009 00:05:53 GMT
Content-Type: application/json
Content-Length: 0

$ curl -is localhost:8098/raw/b
HTTP/1.1 200 OK
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Link: </raw/b/k>; riaktag="contained"
Date: Thu, 17 Dec 2009 00:05:55 GMT
Content-Type: application/json
Content-Length: 254

{"props":{"allow_mult":"true","name":"b","big_vclock":50,"chash_keyfun":{"mod":"riak_util","fun":"chash_std_keyfun"},"linkfun":{"mod":"jiak_object","fun":"mapreduce_linkfun"},"n_val":3,"old_vclock":86400,"small_vclock":10,"young_vclock":20},"keys":["k"]}

$ curl -is localhost:8098/raw/b/k
HTTP/1.1 500 Internal Server Error
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Date: Thu, 17 Dec 2009 00:06:23 GMT
Content-Type: text/html
Content-Length: 970

<html><head><title>500 Internal Server
Error</title></head><body><h1>Internal Server Error</h1>The server
encountered an error while processing this
request:<br><pre>[{webmachine_decision_core,'-decision/1-lc$^1/1-1-',
     [{error,
          {error,
              {case_clause,{error,timeout}},
              [{raw_http_resource,content_types_provided,2},
               {webmachine_resource,resource_call,3},
               {webmachine_resource,do,3},
               {webmachine_decision_core,resource_call,1},
               {webmachine_decision_core,decision,1},
               {webmachine_decision_core,handle_request,2},
               {webmachine_mochiweb,loop,1},
               {mochiweb_http,headers,5}]}}]},
 {webmachine_decision_core,decision,1},
 {webmachine_decision_core,handle_request,2},
 {webmachine_mochiweb,loop,1},
 {mochiweb_http,headers,5},
 {proc_lib,init_p_do_apply,3}]</pre><P><HR><ADDRESS>mochiweb+webmachine
web server</ADDRESS></body></html>




More information about the riak-users mailing list