Qpid
  1. Qpid
  2. QPID-3880

Test ChannelCloseOkTest#testWithoutExceptionListener occasionally fails

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.15
    • Fix Version/s: None
    • Component/s: Java Broker, Java Tests
    • Labels:
      None

      Description

      Test ChannelCloseOkTest#testWithoutExceptionListener occasionally fails with the following error message and stack traces

      Error Message
      Error closing session: org.apache.qpid.AMQTimeoutException: Server did not respond in a timely fashion [error code 408: Request Timeout]Stacktrace

      javax.jms.JMSException: Error closing session: org.apache.qpid.AMQTimeoutException: Server did not respond in a timely fashion [error code 408: Request Timeout]
      	at org.apache.qpid.client.AMQSession.close(AMQSession.java:757)
      	at org.apache.qpid.client.AMQSession.close(AMQSession.java:719)
      	at org.apache.qpid.client.AMQConnection.closeAllSessions(AMQConnection.java:949)
      	at org.apache.qpid.client.AMQConnection.doClose(AMQConnection.java:843)
      	at org.apache.qpid.client.AMQConnection.doClose(AMQConnection.java:832)
      	at org.apache.qpid.client.AMQConnection.doClose(AMQConnection.java:832)
      	at org.apache.qpid.client.AMQConnection.close(AMQConnection.java:816)
      	at org.apache.qpid.client.AMQConnection.close(AMQConnection.java:807)
      	at org.apache.qpid.client.AMQConnection.close(AMQConnection.java:802)
      	at org.apache.qpid.test.unit.client.channelclose.ChannelCloseOkTest.closeConnection(ChannelCloseOkTest.java:130)
      	at org.apache.qpid.test.unit.client.channelclose.ChannelCloseOkTest.tearDown(ChannelCloseOkTest.java:121)
      	at org.apache.qpid.test.utils.QpidBrokerTestCase.runBare(QpidBrokerTestCase.java:237)
      	at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:138)
      Caused by: org.apache.qpid.AMQTimeoutException: Server did not respond in a timely fashion [error code 408: Request Timeout]
      	at org.apache.qpid.client.util.BlockingWaiter.block(BlockingWaiter.java:178)
      	at org.apache.qpid.client.protocol.BlockingMethodFrameListener.blockForFrame(BlockingMethodFrameListener.java:122)
      	at org.apache.qpid.client.protocol.AMQProtocolHandler.writeCommandFrameAndWaitForReply(AMQProtocolHandler.java:655)
      	at org.apache.qpid.client.protocol.AMQProtocolHandler.syncWrite(AMQProtocolHandler.java:676)
      	at org.apache.qpid.client.AMQSession_0_8.sendClose(AMQSession_0_8.java:152)
      	at org.apache.qpid.client.AMQSession.close(AMQSession.java:751)
      

      This test failure revield a race condition happened on broker shutdown whilst receiving messages which caused a NullPointerException

      IoReceiver - localhost/127.0.0.1:15672 2012-03-03 01:06:00,147 ERROR [qpid.client.protocol.AMQProtocolHandler] Exception processing frame
      java.lang.NullPointerException
      	at org.apache.qpid.client.protocol.AMQProtocolSession.deliverMessageToAMQSession(AMQProtocolSession.java:277)
      	at org.apache.qpid.client.protocol.AMQProtocolSession.contentBodyReceived(AMQProtocolSession.java:259)
      	at org.apache.qpid.framing.ContentBody.handle(ContentBody.java:72)
      	at org.apache.qpid.client.protocol.AMQProtocolHandler.received(AMQProtocolHandler.java:436)
      	at org.apache.qpid.client.protocol.AMQProtocolHandler.received(AMQProtocolHandler.java:121)
      	at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:152)
      	at java.lang.Thread.run(Thread.java:619)
      

        Activity

        Hide
        Alex Rudyy added a comment -

        Attached a file with failed test logs

        Show
        Alex Rudyy added a comment - Attached a file with failed test logs
        Hide
        Rob Godfrey added a comment -

        The NPE is a client side exception... is there also a race on the broker? If so can you explain the issue?

        Show
        Rob Godfrey added a comment - The NPE is a client side exception... is there also a race on the broker? If so can you explain the issue?

          People

          • Assignee:
            Unassigned
            Reporter:
            Alex Rudyy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development