Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-5038

RAR - Active session can delay/block endpoint deactivation on shutdown

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.9.0
    • Fix Version/s: 5.9.1, 5.10.0
    • Component/s: None
    • Labels:

      Description

      If there are pending messages, a mdb endpoint deactivation can wait pending active session close. Thread dump of the form:

      3XMTHREADINFO "Non-deferrable Alarm : 0" J9VMThread:0x0000000030F28E00, j9thread_t:0x0000010016C22740, java/lang/Thread:0x0000000041CAAE70, state:CW, prio=5
      3XMJAVALTHREAD (java/lang/Thread getId:0x47, isDaemon:true)
      3XMTHREADINFO1 (native thread ID:0x39E051, native priority:0x5, native policy:UNKNOWN)
      3XMTHREADINFO3 Java callstack:
      4XESTACKTRACE at java/lang/Object.wait(Native Method)
      4XESTACKTRACE at java/lang/Object.wait(Object.java:196(Compiled Code))
      4XESTACKTRACE at org/apache/activemq/ra/ServerSessionPoolImpl.close(ServerSessionPoolImpl.java:273)
      4XESTACKTRACE at org/apache/activemq/ra/ActiveMQEndpointWorker.stop(ActiveMQEndpointWorker.java:265)
      4XESTACKTRACE at org/apache/activemq/ra/ActiveMQResourceAdapter.endpointDeactivation(ActiveMQResourceAdapter.java:216)
      4XESTACKTRACE at com/ibm/ejs/j2c/ActivationSpecWrapperImpl.deactivateUnderRAClassLoaderContext(ActivationSpecWrapperImpl.java:508)
      4XESTACKTRACE at com/ibm/ejs/j2c/ActivationSpecWrapperImpl.deactivateEndPoint(ActivationSpecWrapperImpl.java:411)
      4XESTACKTRACE at com/ibm/ejs/j2c/RAWrapperImpl.deactivateEndpoint(RAWrapperImpl.java:1462)
      4XESTACKTRACE at com/ibm/ejs/j2c/RALifeCycleManagerImpl.deactivateEndPoint(RALifeCycleManagerImpl.java:1811)
      ....

      Issue is inactive session are closed, but active sessions do not get an indication of the pending shutdown.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              gtully Gary Tully
              Reporter:
              gtully Gary Tully

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment