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 8777E6209 for ; Mon, 20 Jun 2011 11:17:09 +0000 (UTC) Received: (qmail 84997 invoked by uid 500); 20 Jun 2011 11:17:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 84956 invoked by uid 500); 20 Jun 2011 11:17:09 -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 84941 invoked by uid 99); 20 Jun 2011 11:17:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 11:17:09 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.161.43 as permitted sender) Received: from [209.85.161.43] (HELO mail-fx0-f43.google.com) (209.85.161.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 11:17:03 +0000 Received: by fxm3 with SMTP id 3so898893fxm.2 for ; Mon, 20 Jun 2011 04:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=K7ETpgki8zl5YB8+Z3GLF/HdbwIOa7sjEytzuB68gEE=; b=afAFfN4LxLYDAoZbL0x7EwSCcVIEooILe49YOHE3wCnPWhwJpG5lz3gkVvSaG1gLLS zdRGq19WNYanplQAKQmnzSE0YLSINAno3rVoshKTb7Sy3FZzQf7XsHYsx164wqNK7Xul +LWYb2ahox/KzW3lc/dQDMf2AodKvRDoXhIsA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=WhzIpD4at4pncEFHJrKLla35lYegG7vkQBiJHNNYZyVveHBiapTKbjP7LT/E0vfuee 4tW0sc1lDnWBPXSOtQjM9muWpScxHlvf7MZazYJFER8emn79sf6gZiiHKRoErL/JOg5S 3UPaJ7Vs9rzcznarb9Xe7tzLQ94RwsxFpYf4Q= MIME-Version: 1.0 Received: by 10.223.47.209 with SMTP id o17mr4657479faf.129.1308568603423; Mon, 20 Jun 2011 04:16:43 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.223.96.201 with HTTP; Mon, 20 Jun 2011 04:16:43 -0700 (PDT) In-Reply-To: <1308502740541-3609565.post@n4.nabble.com> References: <1308502740541-3609565.post@n4.nabble.com> Date: Mon, 20 Jun 2011 13:16:43 +0200 X-Google-Sender-Auth: k2Fd6jk2-TpAcAbjHn6E18UE0bQ Message-ID: Subject: Re: Composite Queues - Losing Messages From: Dejan Bosanac To: dev@activemq.apache.org Content-Type: multipart/alternative; boundary=00151747598cc572f604a622dee2 X-Virus-Checked: Checked by ClamAV on apache.org --00151747598cc572f604a622dee2 Content-Type: text/plain; charset=ISO-8859-1 Please raise a Jira. Also, a test case would help. Regards -- Dejan Bosanac - http://twitter.com/dejanb ----------------- The experts in open source integration and messaging - http://fusesource.com ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Sun, Jun 19, 2011 at 6:59 PM, oseymen wrote: > Hi, > > Please see below and advise whether you want me to create JIRA for it. > > My setup: > Producer -> Q.IN.DC1 (compositeQueue) -> DB.DC1 & SI.DC1 > > I am losing messages in composite queues every time if: > 1. Producer sends persistent messages > 2. Producer is not using transactions > 3. Broker is using the failover transport to single broker > 3. Broker is killed in the middle > > I can replicate this every time I run this test: > 1. Start broker > 2. Start producer which starts sending 3000 persistent messages to > Q.IN.DC1. > 3. Kill the broker (broker is running in console - I am just hitting close > in console) > 4. Restart broker > 5. Wait for 3000 messages to be forwarded. In the end you will see that one > of the queues has 3000 messages, the other has less messages (2997 in my > last run). > > My simple code, broker configuration and log file attached. > > In the log file attached, search for > ID:HAM-NB-073-58297-634440943864257972-1:0:1:1:270. This is the message id > that got dequeued from Q.IN.DC1, enqueued in DB.DC1 and never got to > SI.DC1. > > Up until line 4845 everything is fine. Messages were forwarded to DB and SI > queues. In line 4845, message with ID 270 is sent to the broker. Broker > pushed the message in DB.DC1 but before it forwarded the message to SI.DC1, > broker got restarted. > > Jump to line 5395, now broker is restarted but it is suppressing the > message > saying: > "suppressing duplicate message send > [ID:HAM-NB-073-58297-634440943864257972-1:0:1:1:270]". > > So message #270 got forwarded to DB.DC1 but never reached SI.DC1. Message > also does not exist in Q.IN.DC1, so it's lost. > > Am I missing something? I thought composite queues were forwarding messages > in an atomic operation and producer was supposed to get notified by the > broker if messages are not persisted properly. > > Because I am using failover transport, Send() waits until broker is live > again. No notifications or exceptions are thrown back to my code so that I > can try to resend the message. > > http://activemq.2283324.n4.nabble.com/file/n3609565/activemq.log.txt.zip > activemq.log.txt.zip > http://activemq.2283324.n4.nabble.com/file/n3609565/activemq.xml > activemq.xml > http://activemq.2283324.n4.nabble.com/file/n3609565/Producer.csProducer.cs > > Regards, > Ozan > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Composite-Queues-Losing-Messages-tp3609565p3609565.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > --00151747598cc572f604a622dee2--