Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07EAF1091D for ; Thu, 4 Jul 2013 16:52:41 +0000 (UTC) Received: (qmail 64157 invoked by uid 500); 4 Jul 2013 16:52:40 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 63865 invoked by uid 500); 4 Jul 2013 16:52:40 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 63857 invoked by uid 99); 4 Jul 2013 16:52:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 16:52:39 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of hayden.bakkum@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 16:52:33 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Uumkh-0000z9-NY for users@activemq.apache.org; Thu, 04 Jul 2013 09:51:27 -0700 Date: Thu, 4 Jul 2013 09:51:12 -0700 (PDT) From: hbakkum To: users@activemq.apache.org Message-ID: <1372956672708-4668884.post@n4.nabble.com> In-Reply-To: References: <1372804603620-4668815.post@n4.nabble.com> Subject: Re: Setting a Master broker in a MasterSlave configuration MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks for this. I've managed to configure the database lease locker such that the master will reclaim the lock if it is held by a slave. However, I've encountered another issue while testing failover scenarios, that is, if a slave yields the lock due to the master starting then the slave broker shuts down. What's odd here is that while the broker shuts down the java process is still running. In this situation I would have expected (well, at least preferred :P) the slave to yield the lock, stop its transport connectors and then continue its polling task to obtain the lock in the event of another master failure. I've taken a look at the /Locker/ interface, in particular the /keepAlive()/ method. The javadoc states that if this method returns false, then the broker will indeed terminate, so unfortunately, it looks like a custom /Locker/ implementation won't help me here either. Is there something I'm missing or any way of changing the broker behaviour when the lock is lost? Thanks, Hayden. -- View this message in context: http://activemq.2283324.n4.nabble.com/Setting-a-Master-broker-in-a-MasterSlave-configuration-tp4668815p4668884.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.