I just ran a script on a my dev machine to remove everything in the
local riaksearch instance.  In the process, I found something very
strange.  Specifically, there exists objects in my instance that
cannot be deleted (I get an error whenever I try) and that always
appear with their data intact.

Here's a specific example:

> curl 
> 'http://localhost:8098/riak/clips/9ce2532a8d53b6335b1c4d3955d1267345905cac:4c8a0a1d8ef83af4be6a9aa170d6323ecba22b2f'
{"user":"9ce2532a8d53b6335b1c4d3955d1267345905cac","blob":"4c8a0a1d8ef83af4be6a9aa170d6323ecba22b2f","ctime":1297550238922,"mtime":1297550238922,"text":"something
matter gop imgur imgur com","title":"Something the matter, GOP? -
Imgur 
","url":"http://imgur.com/Ir34G","domain":"imgur.com","tags":"","annote":"","private":1,"width":"625","height":"332","version":"0.1"}

> curl -X DELETE 
> 'http://localhost:8098/riak/clips/9ce2532a8d53b6335b1c4d3955d1267345905cac:4c8a0a1d8ef83af4be6a9aa170d6323ecba22b2f'
<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>{error,badarg,
       [{erlang,iolist_to_binary,[notfound]},
        {wrq,append_to_response_body,2},
        {riak_kv_wm_raw,delete_resource,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}]}</pre><P><HR><ADDRESS>mochiweb+webmachine
web server</ADDRESS></body></html>

Meanwhile, sasl-error.log shows for that last command:


=ERROR REPORT==== 18-Feb-2011::08:24:18 ===
webmachine error:
path="/riak/clips/9ce2532a8d53b6335b1c4d3955d1267345905cac:4c8a0a1d8ef83af4be6a9aa170d6323ecba22b2f"
{error,badarg,
       [{erlang,iolist_to_binary,[notfound]},
        {wrq,append_to_response_body,2},
        {riak_kv_wm_raw,delete_resource,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}]}

Does anyone have any ideas what is going on and how best to avoid it?
It stuff like this that terrifies me.

Thanks,
-- GWF

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

Reply via email to