Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 29694 invoked from network); 18 Sep 2010 16:44:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Sep 2010 16:44:15 -0000 Received: (qmail 4219 invoked by uid 500); 18 Sep 2010 16:44:15 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 4170 invoked by uid 500); 18 Sep 2010 16:44:15 -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 4162 invoked by uid 99); 18 Sep 2010 16:44:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 16:44:14 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 16:44:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8IGhsDr001795 for ; Sat, 18 Sep 2010 16:43:54 GMT Message-ID: <2158276.19441284828234126.JavaMail.jira@thor> Date: Sat, 18 Sep 2010 12:43:54 -0400 (EDT) From: "Bruce Snyder (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-2459) MasterBroker logs the same 'Slave Failed' error for all exceptions, whether or not the Master/Slave connection has been terminated In-Reply-To: <945081913.1256151232720.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Snyder updated AMQ-2459: ------------------------------ Fix Version/s: 5.5.0 (was: 5.4.1) > MasterBroker logs the same 'Slave Failed' error for all exceptions, whether or not the Master/Slave connection has been terminated > ---------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-2459 > URL: https://issues.apache.org/activemq/browse/AMQ-2459 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.2.0, 5.3.0 > Reporter: Kyle Anderson > Priority: Minor > Fix For: 5.5.0 > > Original Estimate: 30 minutes > Remaining Estimate: 30 minutes > > The sendSyncToSlave method of MasterBroker on line 393 logs a 'Slave Failed' error if the slave returns an exception response for a particular replicated command. > This doesn't cause master/slave communication to stop, but it's the same error that's logged when a slave dies. This can cause some confusion. > I found this issue pops up when recovering a master from a slave's data directory. > 1. Create a producer & consumer on the master/slave (where master is set to wait for slave) > 2. Send a few messages to the master/slave > 3. Kill the master/slave, and recover from the slave's data directory, and restart them > 4. Receive messages on the consumer (whose failover connection was waiting for the master/slave during the recovery) > Any messages that were pre-fetched on the consumer will cause the master to report that the Slave Failed with "Could not correlate acknowledgment with dispatched message". Perhaps this points to an issue in PrefetchSubscription too - but aside from the initial noise, the recovery works as expected with no message loss. > Incidentally, I would think that while the exception repose from sendSyncToSlave shouldn't stop the MasterBroker, the catch all (on line 395) should stop processing the same way that a sendAsyncToSlave failure does. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.