On 30.03.2010 16:01, Kevan Miller wrote:
On Mar 29, 2010, at 7:00 PM, David Blevins wrote:

So that occasional deadlock at startup we're seeing on some of the tests is 
cause by the ActiveMQ 5 upgrade.  Kevin had poked at it a bit, but it's still 
unresolved.

Just now noticing that the standalone server shutdown is also not working, just hangs 
forever at "Stopping ResourceAdapter: My JMS Resource Adapter"

Couple release blocking issues if there's someone out there who is looking for 
something to work on.
Are you running with Java 5 or Java 6? And I assume you are running on Mac OS...

I have not seen the startup deadlock on Mac OS Java 6. IMO, it's a JVM/JSE 
issue. I haven't tested extensively. If we're seeing this issue on other 
platforms (not Java 5 Mac OS), then there's more motivation to fix...

--kevan

So had a look at the ActiveMQ code and find this bit of code in RA.stop():

while (endpointWorkers.size() > 0) {
ActiveMQEndpointActivationKey key = endpointWorkers.keySet().iterator().next(); endpointDeactivation(key.getMessageEndpointFactory(), key.getActivationSpec());
        }

It assumes that endpointDeactivation() will definitely stop 'a' worker - no time-out. With no concrete error I am just guessing that this worker fails to stop for 'whatever' reason, and blocks indefinitely.

It seems to be related to: http://issues.apache.org/activemq/browse/AMQ-1447

I am currently testing a possible solution, which basically gives up waiting for RA.stop() after 5 seconds.

Andy.

Reply via email to