Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 9661 invoked from network); 13 Oct 2008 09:39:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Oct 2008 09:39:14 -0000 Received: (qmail 33021 invoked by uid 500); 13 Oct 2008 09:39:14 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 32998 invoked by uid 500); 13 Oct 2008 09:39:14 -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 32987 invoked by uid 99); 13 Oct 2008 09:39:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Oct 2008 02:39:13 -0700 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; Mon, 13 Oct 2008 09:38:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9123F234C217 for ; Mon, 13 Oct 2008 02:38:52 -0700 (PDT) Message-ID: <58030255.1223890732589.JavaMail.jira@brutus> Date: Mon, 13 Oct 2008 02:38:52 -0700 (PDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQ-1970) Slave in Pure Master/Slave setup not updated when more than 200 messages on a queue In-Reply-To: <1122077303.1223484292578.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully reassigned AMQ-1970: ------------------------------- Assignee: Gary Tully > Slave in Pure Master/Slave setup not updated when more than 200 messages on a queue > ----------------------------------------------------------------------------------- > > Key: AMQ-1970 > URL: https://issues.apache.org/activemq/browse/AMQ-1970 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.2.0 > Environment: 5.2.0 RC2 in Pure Master/Slave setup with a single client > java version "1.6.0_07" > Java(TM) SE Runtime Environment (build 1.6.0_07-b06) > Reporter: Hans Bausewein > Assignee: Gary Tully > Attachments: activemqjee-0.0.5-src.tar.gz > > > See the attached application. > If I run > org.activemq.jms.StandaloneApp 200 1 > it works fine. Tried it 5 times, so sent 1000 messages altogether > If I run > org.activemq.jms.StandaloneApp 250 1 > it fails. The master is fine, but the slave still has pending messages on "queue.A". (43 in my last run) > It reported 407 received messages. (the first 200 + 207 of the last run) > Master logs: > 2008-10-08 18:31:04,509 [queue://queue.A] DEBUG AMQMessageStore - flush starting ... > 2008-10-08 18:31:04,513 [0.1.1.155:56003] DEBUG AMQMessageStore - Journalled message add for: ID:hans-44777-1223483462760-0:1:1:1:208, at: offset = 168628, file = 1, size = 279, type = 1 > 2008-10-08 18:31:04,513 [queue://queue.A] DEBUG AMQMessageStore - Doing batch update... adding: 1 removing: 0 > 2008-10-08 18:31:04,513 [queue://queue.A] DEBUG AMQMessageStore - Batch update done. > ................. > 2008-10-08 18:31:33,313 [0.1.1.155:56846] DEBUG TransportConnection - Stopping connection: /10.1.1.155:56846 > 2008-10-08 18:31:33,314 [0.1.1.155:56846] DEBUG TcpTransport - Stopping transport tcp:///10.1.1.155:56846 > 2008-10-08 18:31:33,314 [0.1.1.155:56846] DEBUG TransportConnection - Stopped transport: /10.1.1.155:56846 > 2008-10-08 18:31:33,314 [0.1.1.155:56846] DEBUG TransportConnection - Connection Stopped: /10.1.1.155:56846 > 2008-10-08 18:31:33,317 [0.1.1.155:56001] ERROR MasterBroker - Slave Failed > javax.jms.JMSException: Unmatched acknowledege: Could not find Message-ID null in dispatched-list (end of ack) > at org.apache.activemq.broker.region.PrefetchSubscription.assertAckMatchesDispatched(PrefetchSubscription.java:443) > at org.apache.activemq.broker.region.PrefetchSubscription.acknowledge(PrefetchSubscription.java:187) > at org.apache.activemq.broker.region.AbstractRegion.acknowledge(AbstractRegion.java:373) > at org.apache.activemq.broker.region.RegionBroker.acknowledge(RegionBroker.java:462) > at org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:194) > at org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) > at org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) > at org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:85) > at org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:456) > at org.apache.activemq.command.MessageAck.visit(MessageAck.java:205) > at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305) > at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179) > at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:104) > at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68) > at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:205) > at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) > at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) > 2008-10-08 18:31:33,319 [0.1.1.155:56001] DEBUG AMQMessageStore - Journalled message remove for: ID:hans-44777-1223483462760-0:1:1:1:208, at: offset = 233965, file = 1, size = 266, type = 1 > 2008-10-08 18:31:33,319 [queue://queue.A] DEBUG AMQMessageStore - Doing batch update... adding: 0 removing: 1 > 2008-10-08 18:31:33,320 [queue://queue.A] DEBUG AMQMessageStore - Batch update done. > Slave logs: > 2008-10-08 18:31:04,515 [.serverhost#1] ERROR Service - Async error occurred: javax.jms.JMSException: Slave broker out of sync with master: Dispatched message (ID:hans-44777-1223483462760-0:1:1:1:208) was not in the pending list > javax.jms.JMSException: Slave broker out of sync with master: Dispatched message (ID:hans-44777-1223483462760-0:1:1:1:208) was not in the pending list > at org.apache.activemq.broker.region.PrefetchSubscription.processMessageDispatchNotification(PrefetchSubscription.java:174) > at org.apache.activemq.broker.region.AbstractRegion.processDispatchNotification(AbstractRegion.java:414) > at org.apache.activemq.broker.region.RegionBroker.processDispatchNotification(RegionBroker.java:585) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.