Qpid
  1. Qpid
  2. QPID-3879

Session#close() on session can produce spurious "dispatcher is not started" messages at ERROR to client logs

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10, 0.12, 0.14, 0.16
    • Fix Version/s: 0.17
    • Component/s: Java Client
    • Labels:
      None

      Description

      Calling Session#close() on a session which is still in the process of receiving messages can result in the following error message to the client log:

      Dispatcher-Channel-1 2012-01-25 22:44:25,298 ERROR [apache.qpid.thread.LoggingUncaughtExceptionHandler] Uncaught exception in thread "Dispatcher-Channel-1"
      java.lang.IllegalStateException: dispatcher is not started
              at org.apache.qpid.client.AMQSession.dispatch(AMQSession.java:3192)
              at org.apache.qpid.client.message.UnprocessedMessage.dispatch(UnprocessedMessage.java:55)
              at org.apache.qpid.client.AMQSession$Dispatcher.run(AMQSession.java:3349)
              at java.lang.Thread.run(Thread.java:680)
      

      The problem is longstanding issue, but has probably become more noticeable since QPID-1670 which introduced a uncaught exception handle that directs such errors to SLF4J (rather than stderr). Our tests in general don't show the issue because they tend to consume all the tests message.

        Activity

        Keith Wall created issue -
        Keith Wall made changes -
        Field Original Value New Value
        Summary Session#close() on session can produce spurious "dispatcher is not started" at ERROR messages to client logs Session#close() on session can produce spurious "dispatcher is not started" messages at ERROR to client logs
        Keith Wall made changes -
        Description Calling Session#close() on a session which is still in the process of receiving messages can result in the following error message to the client log:

        {code}
        Dispatcher-Channel-1 2012-01-25 22:44:25,298 ERROR [apache.qpid.thread.LoggingUncaughtExceptionHandler] Uncaught exception in thread "Dispatcher-Channel-1"
        java.lang.IllegalStateException: dispatcher is not started
                at org.apache.qpid.client.AMQSession.dispatch(AMQSession.java:3192)
                at org.apache.qpid.client.message.UnprocessedMessage.dispatch(UnprocessedMessage.java:55)
                at org.apache.qpid.client.AMQSession$Dispatcher.run(AMQSession.java:3349)
                at java.lang.Thread.run(Thread.java:680)
        {code}

        The problem is longstanding issue, but has probably become more noticeable since QPID-1670 which introduced a uncaught exception handle that directs such errors to SLF4J (rather than stderr). Our tests in general don't show the issue because they tend to consumer all the tests message.
        Calling Session#close() on a session which is still in the process of receiving messages can result in the following error message to the client log:

        {code}
        Dispatcher-Channel-1 2012-01-25 22:44:25,298 ERROR [apache.qpid.thread.LoggingUncaughtExceptionHandler] Uncaught exception in thread "Dispatcher-Channel-1"
        java.lang.IllegalStateException: dispatcher is not started
                at org.apache.qpid.client.AMQSession.dispatch(AMQSession.java:3192)
                at org.apache.qpid.client.message.UnprocessedMessage.dispatch(UnprocessedMessage.java:55)
                at org.apache.qpid.client.AMQSession$Dispatcher.run(AMQSession.java:3349)
                at java.lang.Thread.run(Thread.java:680)
        {code}

        The problem is longstanding issue, but has probably become more noticeable since QPID-1670 which introduced a uncaught exception handle that directs such errors to SLF4J (rather than stderr). Our tests in general don't show the issue because they tend to consume all the tests message.
        Keith Wall made changes -
        Attachment 0001-QPID-3879-MessageListener-test-improvments.patch [ 12516997 ]
        Keith Wall made changes -
        Attachment 0002-QPID-3879-Session-close-on-session-can-produce-spuri.patch [ 12516998 ]
        Keith Wall made changes -
        Attachment 0001-QPID-3879-MessageListener-test-improvments.patch [ 12516997 ]
        Keith Wall made changes -
        Attachment 0002-QPID-3879-Session-close-on-session-can-produce-spuri.patch [ 12516998 ]
        Keith Wall made changes -
        Fix Version/s 0.17 [ 12320179 ]
        Fix Version/s Future [ 12315490 ]
        Affects Version/s 0.16 [ 12319870 ]
        Keith Wall made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Keith Wall made changes -
        Status In Progress [ 3 ] Ready To Review [ 10006 ]
        Keith Wall made changes -
        Assignee Keith Wall [ k-wall ] Robbie Gemmell [ gemmellr ]
        Robbie Gemmell made changes -
        Status Ready To Review [ 10006 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Keith Wall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development