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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.9.0
    • 5.9.1, 5.10.0
    • None

    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

              gtully Gary Tully
              gtully Gary Tully
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: