[
https://issues.jboss.org/browse/ISPN-1020?page=com.atlassian.jira.plugin....
]
Dan Berindei updated ISPN-1020:
-------------------------------
Git Pull Request:
https://github.com/infinispan/infinispan/pull/230
Description:
Sometimes the HotRod client test suite hangs at the end.
Almost all of the live threads are client worker threads or server threads, the only test
method running after a while is ClientConnectionPoolingTest.tearDown:
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x765e2148> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2081)
at
java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1425)
at org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:87)
at
org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.releaseExternalResources(NioServerSocketChannelFactory.java:146)
at
org.infinispan.server.core.transport.netty.NettyTransport.stop(NettyTransport.scala:117)
at
org.infinispan.server.core.AbstractProtocolServer.stop(AbstractProtocolServer.scala:96)
at org.infinispan.server.hotrod.HotRodServer.stop(HotRodServer.scala:169)
at
org.infinispan.client.hotrod.ClientConnectionPoolingTest.tearDown(ClientConnectionPoolingTest.java:103)
was:
Sometimes the HotRod client test suite stops towards the end.
Almost all of the live threads are client worker threads or server threads, the only test
method running after a while is ClientConnectionPoolingTest.tearDown:
ClientConnectionPoolingTest.testMaxActiveReached is sometimes failing because it depends
on which servers its keys are stored.
There were two problems in the fail case:
* The test used a command interceptor to block requests on the server and in the failure
case it never disabled it. So stopping the servers would hang indefinitely.
* After some time the put operation would fail and would kill the worker thread. Then
tearDown() would hang trying to stop the worker thread.
HotRod client test suite hangs in
ClientConnectionPoolingTest.tearDown
----------------------------------------------------------------------
Key: ISPN-1020
URL:
https://issues.jboss.org/browse/ISPN-1020
Project: Infinispan
Issue Type: Bug
Components: Test Suite
Affects Versions: 4.2.1.FINAL, 5.0.0.ALPHA4
Reporter: Dan Berindei
Assignee: Dan Berindei
Sometimes the HotRod client test suite hangs at the end.
Almost all of the live threads are client worker threads or server threads, the only test
method running after a while is ClientConnectionPoolingTest.tearDown:
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x765e2148> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2081)
at
java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1425)
at org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:87)
at
org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.releaseExternalResources(NioServerSocketChannelFactory.java:146)
at
org.infinispan.server.core.transport.netty.NettyTransport.stop(NettyTransport.scala:117)
at
org.infinispan.server.core.AbstractProtocolServer.stop(AbstractProtocolServer.scala:96)
at org.infinispan.server.hotrod.HotRodServer.stop(HotRodServer.scala:169)
at
org.infinispan.client.hotrod.ClientConnectionPoolingTest.tearDown(ClientConnectionPoolingTest.java:103)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira