Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6264

ExternalACL#testAccessVirtualHostWithName fails owing to race condition on connection close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 0.31
    • None
    • None

    Description

      ExternalACL#testAccessVirtualHostWithName test fails with assertion failure:

      Error Message
      
      Unexpected exception message expected:<...reating connection: [Permission denied: test]> but was:<...reating connection: [Socket closed]>
      Stacktrace
      
      junit.framework.ComparisonFailure: Unexpected exception message expected:<...reating connection: [Permission denied: test]> but was:<...reating connection: [Socket closed]>
      	at junit.framework.Assert.assertEquals(Assert.java:100)
      	at junit.framework.TestCase.assertEquals(TestCase.java:261)
      	at org.apache.qpid.server.security.acl.ExternalACLTest.assertAccessDeniedException(ExternalACLTest.java:78)
      	at org.apache.qpid.server.security.acl.ExternalACLTest.testAccessVirtualHostWithName(ExternalACLTest.java:108)
      

      It seems that there is a race condition. If the Broker closes the socket before the client has reported the connection close reason back to the client, the cause of the connection close is lost.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwall Keith Wall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: