Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 13461 invoked from network); 26 Jun 2009 01:28:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jun 2009 01:28:01 -0000 Received: (qmail 29873 invoked by uid 500); 26 Jun 2009 01:28:11 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 29797 invoked by uid 500); 26 Jun 2009 01:28:11 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 29785 invoked by uid 99); 26 Jun 2009 01:28:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 01:28:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 01:28:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 70A00234C045 for ; Thu, 25 Jun 2009 18:27:39 -0700 (PDT) Message-ID: <944238501.1245979659459.JavaMail.jira@brutus> Date: Thu, 25 Jun 2009 18:27:39 -0700 (PDT) From: "Joe Fernandez (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2305) TransportConnection Ignores isShutdownOnSlaveFailure In-Reply-To: <1930331998.1245933876053.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52493#action_52493 ] Joe Fernandez commented on AMQ-2305: ------------------------------------ gary, i don't have a stack trace but below is some debug output note my embedded notes, which i've pointed out with '<----' the cfg files for the master and slave follow the debug output; both brokers wrote to the same log file 2009-06-25 21:09:33,718 [/127.0.0.1:3457] INFO TransportConnection - Slave Broker slave is attached 2009-06-25 21:09:39,078 [Thread-4 ] INFO BrokerService - ActiveMQ Message Broker (slave, ID:DIEGO-3454-1245978572796-1:0) is shutting down 2009-06-25 21:09:39,078 [Thread-4 ] DEBUG BrokerService - Caught exception, must be shutting down: java.lang.IllegalStateException: Shutdown in progress 2009-06-25 21:09:39,093 [Thread-4 ] DEBUG VMTransportFactory - Shutting down VM connectors for broker: slave 2009-06-25 21:09:39,093 [r: vm://slave#0] DEBUG TransportConnection - Stopping connection: vm://slave#0 2009-06-25 21:09:39,093 [r: vm://slave#0] DEBUG TransportConnection - Stopped transport: vm://slave#0 2009-06-25 21:09:39,093 [r: vm://slave#0] DEBUG TransportConnection - Cleaning up connection resources: vm://slave#0 2009-06-25 21:09:39,093 [r: vm://slave#0] DEBUG TransportConnection - Connection Stopped: vm://slave#0 2009-06-25 21:09:39,093 [Thread-4 ] INFO TransportConnector - Connector vm://slave Stopped 2009-06-25 21:09:39,109 [Thread-4 ] DEBUG TcpTransport - Stopping transport tcp://localhost/127.0.0.1:61616 2009-06-25 21:09:39,109 [/127.0.0.1:3457] DEBUG TransportConnection - Stopping connection: /127.0.0.1:3457 2009-06-25 21:09:39,109 [/127.0.0.1:3457] DEBUG JoeBroker - stop: Entered <---- this is my Broker plugin's stop method getting called 2009-06-25 21:09:39,109 [Thread-4 ] INFO TransportConnector - Connector tcp://localhost:61617 Stopped 2009-06-25 21:09:39,125 [Thread-4 ] INFO BrokerService - ActiveMQ JMS Message Broker (slave, ID:DIEGO-3454-1245978572796-1:0) stopped org.apache.activemq:BrokerName=master,Type=XXXXX, XXXX=ActiveMQ XXXXX 2009-06-25 21:09:39,156 [/127.0.0.1:3457] DEBUG TcpTransport - Stopping transport tcp:///127.0.0.1:3457 2009-06-25 21:09:39,156 [/127.0.0.1:3457] DEBUG TransportConnection - Stopped transport: /127.0.0.1:3457 2009-06-25 21:09:39,156 [/127.0.0.1:3457] DEBUG TransportConnection - Connection Stopped: /127.0.0.1:3457 2009-06-25 21:09:43,437 [MQ ShutdownHook] INFO BrokerService - ActiveMQ Message Broker (master, ID:DIEGO-3450-1245978553937-0:0) is shutting down 2009-06-25 21:09:43,437 [MQ ShutdownHook] DEBUG BrokerService - Caught exception, must be shutting down: java.lang.IllegalStateException: Shutdown in progress 2009-06-25 21:09:45,359 [MQ ShutdownHook] INFO TransportConnector - Connector tcp://localhost:61616 Stopped 2009-06-25 21:09:45,375 [MQ ShutdownHook] DEBUG JoeBroker - stop: Entered <---- This is my plugin's stop method getting called a second time 2009-06-25 21:09:45,375 [MQ ShutdownHook] DEBUG JoeBroker - stop: JoeBroker has already been stopped 2009-06-25 21:09:45,375 [MQ ShutdownHook] INFO BrokerService - ActiveMQ JMS Message Broker (master, ID:DIEGO-3450-1245978553937-0:0) stopped This is the slave's cfg file This is the master's cfg file > TransportConnection Ignores isShutdownOnSlaveFailure > ---------------------------------------------------- > > Key: AMQ-2305 > URL: https://issues.apache.org/activemq/browse/AMQ-2305 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.2.0 > Environment: ActiveMQ 5.2, Java 5, Windoze XP Pro > Reporter: Joe Fernandez > Assignee: Gary Tully > Attachments: TransportConnection.patch > > > In a pure Master/Slave configuration, when the slave fails the TransportConnection invokes the MasterBroker's stop() method without taking into consideration the shutdownOnSlaveFailure boolean, which by default is set to false. So even if shutdownOnSlaveFailure is set to false, all my plugin brokers' stop methods get invoked when the slave fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.