Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15772DD70 for ; Thu, 15 Nov 2012 16:34:32 +0000 (UTC) Received: (qmail 35495 invoked by uid 500); 15 Nov 2012 16:34:30 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 34371 invoked by uid 500); 15 Nov 2012 16:34:28 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 34323 invoked by uid 99); 15 Nov 2012 16:34:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 16:34:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 16:34:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6A97523888E4 for ; Thu, 15 Nov 2012 16:34:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1409871 - in /activemq/trunk: activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java Date: Thu, 15 Nov 2012 16:34:03 -0000 To: commits@activemq.apache.org From: gtully@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121115163403.6A97523888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gtully Date: Thu Nov 15 16:34:02 2012 New Revision: 1409871 URL: http://svn.apache.org/viewvc?rev=1409871&view=rev Log: https://issues.apache.org/jira/browse/AMQ-4108 - fix unit test regression, QueueMasterSlaveTest, related to https://issues.apache.org/jira/browse/AMQ-4005 and the dual impl of broker service aware. the auto created locker was not getting its broker service init. flakyness in test related to exponential backoff tool long for reconnect Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java activemq/trunk/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java?rev=1409871&r1=1409870&r2=1409871&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java (original) +++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java Thu Nov 15 16:34:02 2012 @@ -47,7 +47,7 @@ public class QueueMasterSlaveTest extend protected CountDownLatch slaveStarted = new CountDownLatch(1); protected int inflightMessageCount; protected int failureCount = 50; - protected String uriString = "failover://(tcp://localhost:62001,tcp://localhost:62002)?randomize=false"; + protected String uriString = "failover://(tcp://localhost:62001,tcp://localhost:62002)?randomize=false&useExponentialBackOff=false"; protected void setUp() throws Exception { setMaxTestTime(TimeUnit.MINUTES.toMillis(10)); @@ -140,7 +140,9 @@ public class QueueMasterSlaveTest extend master.stop(); assertTrue("slave started", slaveStarted.await(15, TimeUnit.SECONDS)); + LOG.info("slave started"); Message advisoryMessage = advConsumer.receive(5000); + LOG.info("received " + advisoryMessage); assertNotNull("Didn't received advisory", advisoryMessage); } Modified: activemq/trunk/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java?rev=1409871&r1=1409870&r2=1409871&view=diff ============================================================================== --- activemq/trunk/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java (original) +++ activemq/trunk/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java Thu Nov 15 16:34:02 2012 @@ -429,7 +429,9 @@ public class KahaDBPersistenceAdapter ex letter.setCheckForCorruptJournalFiles(checkForCorruptJournalFiles); } + @Override public void setBrokerService(BrokerService brokerService) { + super.setBrokerService(brokerService); letter.setBrokerService(brokerService); }