roc230 / spymemcached

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

Set request fails after restarting the server #323

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

I am using spy memcached 2.9.1.
Memacached servers are hosted on:
Redhat5.3 x64 Base Linux Build v1.7

Steps to reproduce the issue:
1 Spymemcached client connected to single memcached server.
2 restart the server
3 send a set request

Actual Result : Set request fails returning false 
Expected Result: client should successfully connect to client and set request 
should be successful. 

Note: Only the first set request is unsuccessful, subsequent set request 
executes properly. 

2015-08-06 11:37:39.806 INFO net.spy.memcached.MemcachedConnection:  Added {QA 
sa=xxx/xxx, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, 
interested=0} to connect queue
2015-08-06 11:37:39.813 INFO net.spy.memcached.MemcachedConnection:  Connection 
state changed for sun.nio.ch.SelectionKeyImpl@73995d80
2015-08-06 11:37:59.846 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting due to exception on {QA sa=xx/xx, #Rops=1, #Wops=0, #iq=0, 
topRop=Cmd: set Key: b Flags: 0 Exp: 3600 Data Length: 5, topWop=null, 
toWrite=0, interested=1}
java.io.IOException: Disconnected unexpected, will reconnect.
    at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:552)
    at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:480)
    at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:261)
    at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:964)
2015-08-06 11:37:59.847 WARN net.spy.memcached.MemcachedConnection:  Closing, 
and reopening {QA sa=xx/xx, #Rops=1, #Wops=0, #iq=0, topRop=Cmd: set Key: b 
Flags: 0 Exp: 3600 Data Length: 5, topWop=null, toWrite=0, interested=1}, 
attempt 0.
2015-08-06 11:37:59.848 WARN 
net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl:  Discarding partially 
completed op: Cmd: set Key: b Flags: 0 Exp: 3600 Data Length: 5
2015-08-06 11:38:01.849 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting {QA sa=xx/xx, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, 
toWrite=0, interested=0}
2015-08-06 11:38:01.880 INFO net.spy.memcached.MemcachedConnection:  Connection 
state changed for sun.nio.ch.SelectionKeyImpl@2678a212

Original issue reported on code.google.com by kov...@gmail.com on 6 Aug 2015 at 3:48

GoogleCodeExporter commented 9 years ago
Issue reproducible with spy memcached client version 2.10.3

Original comment by kov...@gmail.com on 6 Aug 2015 at 5:01