This seems to keep happening in a loop. The reconnection attempts seem to be happening periodically which seems ok, but I don't understand why requests got backed up. It seems like they should have all gone to the remaining server? Is there a config setting I missed?
Thanks.
--
You received this message because you are subscribed to the Google Groups "spymemcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spymemcached...@googlegroups.com.
To post to this group, send email to spymem...@googlegroups.com.
Visit this group at http://groups.google.com/group/spymemcached?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
We have spymemcached 2.8.4 configured to access 2 servers on separate machines. One server went down, and the client seemed to keep trying to reconnect and the queue got backed up. Things started working again only after I removed the downed host from the config and restarted the client. Here is the config:ConnectionFactoryBuilder builder = new ConnectionFactoryBuilder();builder.setProtocol(Protocol.BINARY);builder.setHashAlg(DefaultHashAlgorithm.KETAMA_HASH);builder.setOpTimeout(2500);builder.setLocatorType(Locator.CONSISTENT);builder.setTranscoder(new CompressingEncoder(2048));MemcachedClient newClient = new MemcachedClient(builder.build(), new ArrayList<InetSocketAddress>(newInstances));((SerializingTranscoder) newClient.getTranscoder()).setCompressionThreshold(2048);From the logs:
net.spy.memcached.MemcachedConnection handleIO WARNING: sun.nio.ch.SelectionKeyImpl@1f34602a exceeded continuous timeout thresholdnet.spy.memcached.MemcachedConnection queueReconnect WARNING: Closing, and reopening {QA sa=yyy/xxx:5700, #Rops=22, #Wops=1340, #iq=1, topRop=Cmd: 16 Opaque: 35945, topWop=Cmd: -1 Opaque: -1 Keys: e-40415eb63a7d7114v1 ...net.spy.memcached.protocol.TCPMemcachedNodeImpl setupResend WARNING: Discarding partially completed op: Cmd: 16 Opaque: 35945net.spy.memcached.MemcachedClient$10$1 receivedStatus WARNING: Unsuccessful stat fetch: {OperationStatus success=false: cancelled}net.spy.memcached.protocol.TCPMemcachedNodeImpl setupResend WARNING: Discarding partially completed op: Cmd: -1 Opaque: -1 Keys: e-4738fd2e35acbeb3v1 e-62ddc12de341d3aev1<many similar messages...>net.spy.memcached.MemcachedConnection addOperation WARNING: Could not redistribute to another node, retrying primary node for e-d618466439778a23v1.<many similar messages...>net.spy.memcached.MemcachedConnection attemptReconnects INFO: Reconnecting {QA sa=yyy/xxx:5700, #Rops=0, #Wops=1509, #iq=0, topRop=null, topWop=Cmd: -1 Opaque: -1 Keys: e-40415eb63a7d7114v1 ..., toWrite=0, interested=0}
AM net.spy.memcached.MemcachedConnection handleIO INFO: Connection state changed for sun.nio.ch.SelectionKeyImpl@e6dd284net.spy.memcached.MemcachedConnection handleIO INFO: Reconnecting due to exception on {QA sa=yyy/xxx:5700, #Rops=0, #Wops=1520, #iq=0, topRop=null, topWop=Cmd: -1 Opaque: -1 Keys: e-40415eb63a7d7114v1 ..., toWrite=0, interested=0}
java.net.NoRouteToHostException: No route to hostat sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:369)at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:242)at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:836)net.spy.memcached.MemcachedConnection queueReconnect WARNING: Closing, and reopening {QA sa=yyy/xxx:5700, #Rops=0, #Wops=1520, #iq=0, topRop=null, topWop=Cmd: -1 Opaque: -1 Keys: e-40415eb63a7d7114v1 ..., toWrite=0, interested=0}, attempt 1.