bigdata4u / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

memcached client fails to add after re-connecting to server #284

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
Client version : 2.8.4
Server version : 1.4.13 
Operating system : Ubuntu 12.04.2 LTS

I am using spy memcached client and it fails to add/get a key after the server 
is restarted. After the memcached server is restarted client detects that the 
connection is lost and establishes a new connection. The subsequent add/get 
request times out. I took a tcpdump and I do not see any packets/requests (add 
request) sent by the client to the server.

Exception - 

    Caused by: java.lang.RuntimeException: Timed out waiting for operation
    at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:135)

    ... 6 more
    Caused by: net.spy.memcached.internal.CheckedOperationTimeoutException: Timed out waiting for operation - failing node: localhost/127.0.0.1:11222
    at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:160)
    at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:133)
    ... 7 more

Code -

    OperationFuture<Boolean> op = memcachedClient.add(key, 0, true);
    Object value = null;
    try {
         rValue = op.get();
     return true;
    } catch() {
     ...
    } 

Original issue reported on code.google.com by man...@gmail.com on 21 Aug 2013 at 10:59