You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/04/08 13:16:25 UTC

[jira] [Commented] (QPID-7156) Possible Java Broker crash if connection is formed whilst virtualhost is stopping

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

ASF subversion and git services commented on QPID-7156:
-------------------------------------------------------

Commit 1738231 from [~k-wall] in branch 'java/trunk'
[ https://svn.apache.org/r1738231 ]

QPID-7156: [Java Broker] Fix racey test BrokerClosesClientConnectionTest#testClientCloseOnVirtualHostStop

> Possible Java Broker crash if connection is formed whilst virtualhost is stopping
> ---------------------------------------------------------------------------------
>
>                 Key: QPID-7156
>                 URL: https://issues.apache.org/jira/browse/QPID-7156
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: qpid-java-6.0, qpid-java-6.0.1
>            Reporter: Keith Wall
>            Assignee: Lorenz Quack
>             Fix For: qpid-java-6.0.2, qpid-java-6.1
>
>         Attachments: 0001-QPID-7156-Java-Broker-Stop-new-connections-from-bein.patch
>
>
> As reported here:
> http://qpid.2158936.n2.nabble.com/Java-broker-crashes-after-stopping-vhost-td7640284.html
> A race condition leads to the possibility of a NPE if the virtualhost is stopped as a new connection is formed.   In the unlucky case, the task to associate the connection with the virtualhost gets executed after the virtual host's network connection scheduler is shutdown.  This leads to a NPE. The Broker detects the NPE and shuts itself down.
> {noformat}
> 2016-03-18 06:41:06,748 ERROR [IO-/172.24.102.24:51029] (o.a.q.s.Main) - Uncaught exception, shutting down.
> java.lang.NullPointerException: null
>                 at org.apache.qpid.server.transport.NetworkConnectionScheduler.processConnection(NetworkConnectionScheduler.java:142) ~[qpid-broker-core-6.0.1.jar:6.0.1]
>                 at org.apache.qpid.server.transport.SelectorThread$ConnectionProcessor.processConnection(SelectorThread.java:505) ~[qpid-broker-core-6.0.1.jar:6.0.1]
>                 at org.apache.qpid.server.transport.SelectorThread$SelectionTask.performSelect(SelectorThread.java:338) ~[qpid-broker-core-6.0.1.jar:6.0.1]
>                 at org.apache.qpid.server.transport.SelectorThread$SelectionTask.run(SelectorThread.java:87) ~[qpid-broker-core-6.0.1.jar:6.0.1]
>                 at org.apache.qpid.server.transport.SelectorThread.run(SelectorThread.java:463) ~[qpid-broker-core-6.0.1.jar:6.0.1]
>                 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_51]
>                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.8.0_51]
>                 at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_51]
> "
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org