[
https://issues.apache.org/activemq/browse/AMQ-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bruce Snyder resolved AMQ-957.
------------------------------
Resolution: Cannot Reproduce
Unable to reproduce with 5.1.0.
> Problem with Broker shutdown in 4.0.2
> -------------------------------------
>
> Key: AMQ-957
> URL: https://issues.apache.org/activemq/browse/AMQ-957
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 4.0.2
> Reporter: Kevin Yaussy
> Fix For: 5.2.0
>
> Attachments: DemandForwardingBridgeSupport.patch
>
>
> When running a network of brokers, the first broker shutdown (kill) works.
> Subsequent brokers hang after the kill. Pasted are the significant threads
> from kill-3 (after the initial kill).
> "ActiveMQ ShutdownHook" prio=10 tid=0x008ee098 nid=0x66 in Object.wait()
> [0x8e11f000..0x8e11f9f0]
> at java.lang.Object.wait(Native Method)
> - waiting on <0x99d61140> (a java.lang.Object)
> at
> org.apache.activemq.transport.failover.FailoverTransport.oneway(FailoverTransport.java:352)
> - locked <0x99d61140> (a java.lang.Object)
> at
> org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:45)
> - locked <0x99d611c8> (a java.lang.Object)
> at
> org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:59)
> at
> org.apache.activemq.network.DemandForwardingBridgeSupport.stop(DemandForwardingBridgeSupport.java:297)
> at
> org.apache.activemq.network.DiscoveryNetworkConnector.doStop(DiscoveryNetworkConnector.java:191)
> at
> org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:58)
> at
> org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:42)
> at
> org.apache.activemq.broker.BrokerService.stop(BrokerService.java:398)
> at
> org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1040)
> at
> org.apache.activemq.broker.BrokerService$3.run(BrokerService.java:1017)
> I think this goes into DemandForwardingBridgeSupport::stop. I fixed an issue
> (submitted in another issue report, I believe) in 4.0.1 for the same thing.
> I believe the problem is that the code is expecting to send a message to a
> broker when it wants to stop the network bridge. This is problematic, since
> the broker may be gone. There could be any of a number of problems going on
> in the network, and trying to send a message first before closing out the
> network bridge will only sometimes work.
> I can submit a patch for this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.