Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF63710F20 for ; Wed, 2 Apr 2014 22:19:36 +0000 (UTC) Received: (qmail 42382 invoked by uid 500); 2 Apr 2014 22:19:29 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 42179 invoked by uid 500); 2 Apr 2014 22:19:27 -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 42021 invoked by uid 99); 2 Apr 2014 22:19:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 22:19:24 +0000 Date: Wed, 2 Apr 2014 22:19:24 +0000 (UTC) From: "Hadrian Zbarcea (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMQ-4924) Duplicate messages are left in the persistence store MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hadrian Zbarcea updated AMQ-4924: --------------------------------- Fix Version/s: 5.9.1 > Duplicate messages are left in the persistence store > ---------------------------------------------------- > > Key: AMQ-4924 > URL: https://issues.apache.org/jira/browse/AMQ-4924 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.8.0, 5.9.0 > Reporter: Ron Koerner > Assignee: Rob Davies > Fix For: 5.9.1, 5.10.0 > > Attachments: AMQ4924.java > > > We have a local and remote broker connected with a duplex bridge, which is initiated by the remote broker. > Producers are attached to the remote broker, one consumer to the local broker. > The following scenario causes messages to be left in the local store, which are replayed when the local broker is restarted: > # messages are forwarded from the remote broker to the local broker > # messages are dispatched to the local consumer > # the connection between the local and remote broker fails > # the local broker tries to acknowledge the message reception to the remote broker, which fails > # the remote broker reconnects > # the messages are resent > # the local broker correctly identifies them as duplicates, but puts them into the store nevertheless where they remain until the local broker is restarted > # other messages are produced and consumed without a problem > # the local broker is restarted > # the duplicates are now delivered to the local consumer again and of course out of order > This behaviour can be identified by a queue size which does not seem to shrink below a certain number, even if a consumer is connected and consuming other messages. > When the log level is set to TRACE these messages indicate the problem: > {code} > 2013-12-06 20:35:17,405 TRACE .a.a.b.r.c.AbstractStoreCursor - org.apache.activemq.broker.region.cursors.QueueStorePrefetch@c0bc4f:testqueue,batchResetNeeded=false,storeHasMessages=true,size=0,cacheEnabled=true,maxBatchSize:1 - cursor got duplicate: ID:smcexp5-58011-1386358514283-7:1:1:1:1, 4 [ActiveMQ VMTransport: vm://LOCAL#19-1] > 2013-12-06 20:35:17,412 TRACE .a.a.b.r.c.AbstractStoreCursor - org.apache.activemq.broker.region.cursors.QueueStorePrefetch@c0bc4f:testqueue,batchResetNeeded=false,storeHasMessages=false,size=1,cacheEnabled=false,maxBatchSize:1 - fillBatch [ActiveMQ BrokerService[LOCAL] Task-2] > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)