[infinispan-issues] [JBoss JIRA] Updated: (ISPN-1020) HotRod client test suite hangs in ClientConnectionPoolingTest.tearDown

Dan Berindei (JIRA) jira-events at lists.jboss.org
Tue Apr 5 04:52:33 EDT 2011


     [ https://issues.jboss.org/browse/ISPN-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei updated ISPN-1020:
-------------------------------

    Fix Version/s: 4.2.2.BETA1
                   5.0.0.BETA1


I updated the pull request to fix the ClientConnectionPoolingTest test.

It turns out the problem was that RemoteCacheImpl.ping was leaking a transport and was changing the number of connections in the pool, so I added another commit that fixes the leak.

The leak was present only on the master branch, but I think it's still good to have the tests look the same everywhere so I kept the t_ispn1020_4.2.x branch with the updated tests.

> 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
>             Fix For: 4.2.2.BETA1, 5.0.0.BETA1
>
>
> 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


More information about the infinispan-issues mailing list