Hi,
I'm just testing the behaviour when a server node suddenly dies at run
time. What I'm getting is that the MemcachedClient keeps trying to
reconnect. All the subsequent calls seem to be blocked. The message
I'm getting is:
2009-08-10 15:43:35.916 WARN net.spy.memcached.MemcachedConnection:
Closing, and reopening {QA sa=localhost/
127.0.0.1:11211, #Rops=0,
#Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0},
attempt 38.
2009-08-10 15:43:39.819 INFO net.spy.memcached.MemcachedConnection:
Reconnecting {QA sa=localhost/
127.0.0.1:11211, #Rops=0, #Wops=0,
#iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
2009-08-10 15:43:39.820 INFO net.spy.memcached.MemcachedConnection:
Connection state changed for sun.nio.ch.SelectionKeyImpl@49a51bb9
2009-08-10 15:43:39.821 INFO net.spy.memcached.MemcachedConnection:
Reconnecting due to failure to connect to {QA sa=localhost/
127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null,
toWrite=0, interested=0}
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:
574)
at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:294)
at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:192)
at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1444)
BTW, all I'm doing are "get" operations. There is no set/write.