[
https://issues.apache.org/jira/browse/AMQ-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Tully resolved AMQ-5038.
-----------------------------
Resolution: Fixed
fix and test in http://git-wip-us.apache.org/repos/asf/activemq/commit/519d8f7d
we now close active sessions on deactivate to ensure they stop.
> RAR - Active session can delay/block endpoint deactivation on shutdown
> ----------------------------------------------------------------------
>
> Key: AMQ-5038
> URL: https://issues.apache.org/jira/browse/AMQ-5038
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.9.0
> Reporter: Gary Tully
> Assignee: Gary Tully
> Labels: RAR, shutdown
> Fix For: 5.10.0
>
>
> If there are pending messages, a mdb endpoint deactivation can wait pending
> active session close. Thread dump of the form:
> {code}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)
> ....{code}
> Issue is inactive session are closed, but active sessions do not get an
> indication of the pending shutdown.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)