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

James Baldassari commented on AVRO-943:
---------------------------------------

Thanks for logging this issue.  I've noticed this behavior too, and it has been 
on my radar for a while to try to figure out what's going on.  I saved a stack 
trace the last time I noticed it, and it's very similar to yours.  The most 
important parts seem to be the main thread waiting on 
org.jboss.netty.channel.DefaultChannelFuture.awaitUninterruptibly() and the 
Netty thread trying to acquire the write lock in 
org.apache.avro.ipc.NettyTransceiver.disconnect(boolean, boolean):

{code}
main [WAITING] CPU time: 0:00
org.jboss.netty.channel.DefaultChannelFuture.awaitUninterruptibly()
org.apache.avro.ipc.NettyTransceiver.getChannel()
org.apache.avro.ipc.NettyTransceiver.getRemoteName()
org.apache.avro.ipc.Requestor.writeHandshake(Encoder)
org.apache.avro.ipc.Requestor.access$3(Requestor, Encoder)
org.apache.avro.ipc.Requestor$Request.getBytes()
org.apache.avro.ipc.Requestor.request(Requestor$Request, Callback)
org.apache.avro.ipc.Requestor.request(String, Object, Callback)
org.apache.avro.ipc.specific.SpecificRequestor.invoke(Object, Method, Object[])
$Proxy10.add(int, int, Callback)
org.apache.avro.ipc.TestNettyServerWithCallbacks.testSendAfterChannelClose()
org.junit.runners.ParentRunner.run(RunNotifier)
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(Class, RunNotifier)
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(Class, Reporter, 
ClassLoader, RunNotifier)
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(Object)
java.lang.reflect.Method.invoke(Object, Object[])
org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(Object,
 Method, Object[])
$Proxy0.invoke(Object)
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(Object, 
ClassLoader, ClassLoader)
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(Object, 
File, Properties)
org.apache.maven.surefire.booter.ForkedBooter.main(String[])
{code}
{code}
New I/O client boss #2 [WAITING] CPU time: 0:00
java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock()
org.apache.avro.ipc.NettyTransceiver.disconnect(boolean, boolean)
org.apache.avro.ipc.NettyTransceiver.disconnect()
org.apache.avro.ipc.NettyTransceiver.access$200(NettyTransceiver)
org.apache.avro.ipc.NettyTransceiver$NettyClientAvroHandler.handleUpstream(ChannelHandlerContext,
 ChannelEvent)
java.lang.Thread.run()
{code}

I'll try to find some time this week to dig deeper on this.
                
> TestNettyServerWithCallbacks sometimes hangs
> --------------------------------------------
>
>                 Key: AVRO-943
>                 URL: https://issues.apache.org/jira/browse/AVRO-943
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Doug Cutting
>
> I'm periodically seeing tests hang in TestNettyServerWithCallbacks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to