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

Keith Wall commented on QPID-3756:
----------------------------------

I've attached a patch to ConnectionDelegate.java to resolve this problem.

It works by reordering the ConnectionCloseOk response so that it occurs after 
the internal state is updated.   Obviously this change will affect both client 
and broker.   I did consider making the change Broker side only by overriding 
the method within ServerConnectionDelegate.java, but this would only serve to 
introduce more complexity and difference between broker/client.   Robbie/Alex, 
what do you both think?
 
                
> ManagedConnectionMBeanTest.testChannels fails on 0-10 spawned profiles
> ----------------------------------------------------------------------
>
>                 Key: QPID-3756
>                 URL: https://issues.apache.org/jira/browse/QPID-3756
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: 0.15
>            Reporter: Keith Wall
>            Assignee: Alex Rudyy
>            Priority: Minor
>         Attachments: 
> 0001-QPID-3756-Fix-system-test-ManagedConnectionMBeanTest.patch, 
> 0001-QPID-3756-ManagedConnectionMBeanTest.testChannels-oc.patch
>
>
> We see the following test fail occasionally on the java-mms-spawn.0-10 and 
> java-bdb-spawn.0-10.  The stack trace is as folows:
> Error Message
> Unexpected number of connection mbeans expected:<0> but was:<1>
> {code}
> Stacktrace
> junit.framework.AssertionFailedError: Unexpected number of connection mbeans 
> expected:<0> but was:<1>
> at 
> org.apache.qpid.management.jmx.ManagedConnectionMBeanTest.testChannels(ManagedConnectionMBeanTest.java:125)
> at 
> org.apache.qpid.test.utils.QpidBrokerTestCase.runBare(QpidBrokerTestCase.java:240)
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:135)
> {code}

--
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

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to