You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Flavio Junqueira (JIRA)" <ji...@apache.org> on 2013/12/13 13:25:07 UTC

[jira] [Commented] (ZOOKEEPER-1838) ZooKeeper shutdown hangs indefinitely at NioServerSocketChannelFactory.releaseExternalResources

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847441#comment-13847441 ] 

Flavio Junqueira commented on ZOOKEEPER-1838:
---------------------------------------------

Do you know why bumping the netty version up solves the problem?

> ZooKeeper shutdown hangs indefinitely at NioServerSocketChannelFactory.releaseExternalResources
> -----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1838
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1838
>             Project: ZooKeeper
>          Issue Type: Sub-task
>          Components: server
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>             Fix For: 3.4.6
>
>         Attachments: ZOOKEEPER-1838.patch
>
>
> Zookeeper shutdown hangs when releasing external resources. This has been observed when executing NioNettySuiteTest.
> {code}
> "main" prio=6 tid=0x01498400 nid=0x2328 waiting on condition [0x0158e000..0x0158fe28]
>    java.lang.Thread.State: TIMED_WAITING (parking)
> 	at sun.misc.Unsafe.park(Native Method)
> 	- parking to wait for  <0x22f58918> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
> 	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
> 	at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1244)
> 	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.jboss.netty.bootstrap.Bootstrap.releaseExternalResources(Bootstrap.java:324)
> 	at org.apache.zookeeper.server.NettyServerCnxnFactory.shutdown(NettyServerCnxnFactory.java:345)
> 	at org.apache.zookeeper.test.ClientBase.shutdownServerInstance(ClientBase.java:355)
> 	at org.apache.zookeeper.test.ClientBase.stopServer(ClientBase.java:422)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)