Ryan, thanks for a reply.

Yes, I'm using HTTP client (HTTPClusterClient).

I didn't check immediately after saving an object in Riak if the write
succeeded - I assumed it did, cause the store() method didn't throw any
exception and apparently finished without problems. The write happened
during nightly refresh and we noticed missing data the next morning, so a
few hours later. I used Firefox REST client to query Riak.

The error message I copied in the previous post can be found in error.log,
erlang.log, crash.log and console.log - but there's no other error message
in any of the logs.

We observed this problem only twice whereby the data refresh is done every
night, so I can't think of any specific reason why this error occurred.

Can you think of any way I could check why the socket has closed?

Cheers,
Anna.


On 10 December 2011 02:26, Ryan Zezeski <[email protected]> wrote:

>
>
> On Tue, Dec 6, 2011 at 8:16 AM, Anna Byszkin <[email protected]>wrote:
>
>>
>> Java riak-client version 1.0.1.
>>
>
> You're using the Java client with the HTTP transport?
>
>
>>
>> Problem:
>> -----
>> I couldn't find a key stored in Riak. 'Stored' means that the application
>> call:
>> <mybucket>.store(<key>, object.toString()).execute();
>> finished successfully and I found a relevant info in the application log.
>> However later I couldn't find this key in Riak.
>>
>>
> How much later?  Have you tried doing the write and then a read directly
> after?  Have you tried a read with curl?
>
>
>> In the error.log and crash.log files I can see:
>> ------
>> [error] webmachine error:
>> path="/riak/elists/84kZEElqXqNCLZ_ZCQcRHpTbCD5c77AREvB_K3jGcm4"
>>
>> {error,{error,{badmatch,{error,closed}},[{webmachine_request,recv_unchunked_body,4},{webmachine_request,do_recv_body,2},{webmachine_request,call,2},{wrq,req_body,1},{riak_kv_wm_object,accept_doc_body,2},{webmachine_resource,resource_call,3},{webmachine_resource,do,3},{webmachine_decision_core,resource_call,1}]}}
>> ------
>>
>> Could it be a problem with the cluster configuration or maybe the client
>> (strange that I didn't get any exception if the store() method failed)?
>> Don't see any errors in syslog. What else could I check?
>> Has anyone else seen that (and possibly resolved ;))?
>>
>
> I'm sticking with my original response.  It seems for whatever reason the
> socket has closed on you.  You see no other errors in any of the logs?  Do
> you see anything interesting in console.log?
>
> -Ryan
>
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to