Gustavo Lira e Silva created ISPN-10941:
-------------------------------------------
Summary: memcached endpoint is not being able to reconnect to the server
Key: ISPN-10941
URL:
https://issues.jboss.org/browse/ISPN-10941
Project: Infinispan
Issue Type: Bug
Components: Memcached
Affects Versions: 10.0.1.Final
Reporter: Gustavo Lira e Silva
The following scenario is not working:
* Start the server
* Connect to memcached
* Store some entries
* Stop the server
* Start the server again
* Reconnect to memcached
The following exception is being thrown:
{noformat}
2019-11-11 16:53:43.360 INFO net.spy.memcached.MemcachedConnection: Setting
retryQueueSize to -1
2019-11-11 16:53:43.361 INFO net.spy.memcached.MemcachedConnection: Added {QA
sa=localhost/127.0.0.1:11221, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null,
toWrite=0, interested=0} to connect queue
2019-11-11 16:53:43.363 WARN net.spy.memcached.MemcachedConnection: Could not
redistribute to another node, retrying primary node for k1.
2019-11-11 16:53:43.363 INFO net.spy.memcached.MemcachedConnection: Reconnecting due to
failure to connect to {QA sa=localhost/127.0.0.1:11221, #Rops=0, #Wops=0, #iq=0,
topRop=null, topWop=null, toWrite=0, interested=0}
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:691)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:450)
at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:1457)
2019-11-11 16:53:43.366 WARN net.spy.memcached.MemcachedConnection: Closing, and
reopening {QA sa=localhost/127.0.0.1:11221, #Rops=0, #Wops=0, #iq=1, topRop=null,
topWop=null, toWrite=0, interested=0}, attempt 1.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.554 sec <<<
FAILURE!
testStartStop(com.example.MemcachedTest) Time elapsed: 12.472 sec <<< ERROR!
net.spy.memcached.OperationTimeoutException: Timeout waiting for value: waited 2,500 ms.
Node status: Connection Status { localhost/127.0.0.1:11221 active: false, authed: true,
last read: 2,508 ms ago }
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1240)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1256)
at com.example.MemcachedTest.testStartStop(MemcachedTest.java:37)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: net.spy.memcached.internal.CheckedOperationTimeoutException: Timed out waiting
for operation - failing node: localhost/127.0.0.1:11221
at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:167)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:69)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1229)
... 31 more
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)