vaseems / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

Failed to reconnect after memcached server restart #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure xmemcached client such that it is connected two memcached servers. 
One memcached server is located on the same node as memcached client.
2. Restart remote memcached server and check that xmemcached client connection 
is recovered. (successfuly reconnects)
3. Restart local memcached server and check that xmemcached client does not 
reconnects. 

What is the expected output? What do you see instead?
xmemcached client  should reconnect to memcached servers after memcached 
servers are  succesfuly restarted.

What version of the product are you using? On what operating system?
OS : uname -a
SunOS inis1app1 5.10 Generic_144488-06 sun4u sparc SUNW,SPARC-Enterprise
Solaris 
JVM : 
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode)

Please provide any additional information below.

Logs for local memcached server. (java.net.ConnectException)

|27/09/11|13:36:09:463 [WARN MemcachedConnector.java:341 Xmemcached-Reactor-2] 
: Remove a session: 127.0.0.1:11211
|27/09/11|13:36:11:467 [ERROR MemcachedConnector.java:162 Heal-Session-Thread] 
: SessionMonitor connect error
java.net.ConnectException: Connection refused
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:500)
        at net.rubyeye.xmemcached.impl.MemcachedConnector.connect(MemcachedConnector.java:434)
        at net.rubyeye.xmemcached.impl.MemcachedConnector$SessionMonitor.run(MemcachedConnector.java:117)

Logs for remote memcached server. (java.io.IOException)

|27/09/11|13:18:59:589 [ERROR MemcachedConnector.java:143 Heal-Session-Thread] 
: Reconnect to 10.177.192.14:11211 fail
|27/09/11|13:18:59:589 [ERROR MemcachedConnector.java:513 Xmemcached-Reactor-0] 
: Exception occured in controller
java.io.IOException: Connect to 10.177.192.14:11211 fail,Connection refused
    at net.rubyeye.xmemcached.impl.MemcachedConnector.onConnect(MemcachedConnector.java:398)
    at com.google.code.yanf4j.nio.impl.Reactor.dispatchEvent(Reactor.java:302)
    at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:141)

Original issue reported on code.google.com by ilkinulas on 27 Sep 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Fixed by 
https://github.com/killme2008/xmemcached/commit/fd3b9121a59c8a70b4aa845a87b9f382
89b0d5d7

Thanks a lot.

Original comment by killme2...@gmail.com on 29 Sep 2011 at 12:02

GoogleCodeExporter commented 9 years ago
xmemcached 1.3.5 has been released.Thanks.

Original comment by killme2...@gmail.com on 1 Oct 2011 at 7:13