[
https://issues.apache.org/jira/browse/BOOKKEEPER-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825336#comment-13825336
]
Rakesh R commented on BOOKKEEPER-678:
-------------------------------------
In my laptop(Windows-7, 64bit machine) BookieFailureTest.testAsyncBK3 test case
is failing. From netty, releaseExternalResources would hang when there's an
open channel exist. I could see bug fix
https://issues.jboss.org/browse/NETTY-417 which talks about the possibilities
of open channels after closure. Also, when seen netty release notes there are
other potential bug fixes happened after 3.2.4 (I didn't gone through much on
their internals about these fixes).
> BookieServer shutdown hangs indefinitely at
> NioServerSocketChannelFactory.releaseExternalResources
> --------------------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-678
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-678
> Project: Bookkeeper
> Issue Type: Bug
> Components: bookkeeper-server
> Reporter: Rakesh R
> Assignee: Rakesh R
> Fix For: 4.3.0
>
> Attachments:
> 0001-BOOKKEEPER-678-ThreadDump-bkServer-hangs-at-release-external-resources.th,
> 0001-BOOKKEEPER-678-upgraded-netty-version.patch
>
>
> BookieFailureTest testcase hangs randomly in my environment(Windows 7), when
> I checked the threaddump, its waiting at NIO's releaseExternalResources.
> Please have a look at the following threaddump.
> {code}
> "Thread-6" prio=6 tid=0x0000000007676800 nid=0x19ac waiting on condition
> [0x000000000b1ae000]
> java.lang.Thread.State: TIMED_WAITING (parking)
> at sun.misc.Unsafe.park(Native Method)
> - parking to wait for <0x00000000c3278068> (a
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
> at
> java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)
> at
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
> at
> java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1261)
> at
> org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:107)
> at
> org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.releaseExternalResources(NioServerSocketChannelFactory.java:146)
> at
> org.apache.bookkeeper.proto.BookieNettyServer.shutdown(BookieNettyServer.java:149)
> at
> org.apache.bookkeeper.proto.BookieServer.shutdown(BookieServer.java:138)
> - locked <0x00000000c3277ca8> (a
> org.apache.bookkeeper.proto.BookieServer)
> at
> org.apache.bookkeeper.test.BookieFailureTest.auxTestReadWriteAsyncSingleClient(BookieFailureTest.java:177)
> at
> org.apache.bookkeeper.test.BookieFailureTest.testAsyncBK3(BookieFailureTest.java:114)
> {code}
> Also, full threaddump is attached to this JIRA.
--
This message was sent by Atlassian JIRA
(v6.1#6144)