Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2136EE56C for ; Tue, 5 Feb 2013 15:02:13 +0000 (UTC) Received: (qmail 92053 invoked by uid 500); 5 Feb 2013 15:02:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 91566 invoked by uid 500); 5 Feb 2013 15:02:08 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 91543 invoked by uid 99); 5 Feb 2013 15:02:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 15:02:07 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 15:02:01 +0000 Received: by mail-ie0-f173.google.com with SMTP id 9so301876iec.18 for ; Tue, 05 Feb 2013 07:01:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=LxaRVFxe/Tn4IOWQNZT4GnPkn3eCRFyYRARQgOmaN8I=; b=aj4OB6czC6NzcUsCI6qhNyXPhMq4ugAeTeTGWGGmDsY1j9J6PezG1fvvSY+Jq3uHnE o6HCMwkM/b64wY+CToFi50tIKZuUCwaG2zzwH7EL7ivF7BXDieF9q88ZzQ42EONh1lsm HWhS7EZjQBfh7Dnp8292UcYc+HMp+f/5qQsThVNepYQUpwXqIIrPUPwA4eTeFL7uyNLc bGOcA13qSmUy3LOEyBSI6nngtaQ9b5gJB5dN2p3jiXA0YDq1/CCsPjXLPmNmzACrBlUu 1rsDMHRPmOWlGWqx7KEhS76GYiWwGVxBhSnydAD50Wg1xyNxRMSycvx2GkmbzdoOASZf NqPw== MIME-Version: 1.0 X-Received: by 10.42.27.74 with SMTP id i10mr22483004icc.47.1360076500560; Tue, 05 Feb 2013 07:01:40 -0800 (PST) Received: by 10.50.41.100 with HTTP; Tue, 5 Feb 2013 07:01:40 -0800 (PST) In-Reply-To: <1360010150143-4662747.post@n4.nabble.com> References: <1360010150143-4662747.post@n4.nabble.com> Date: Tue, 5 Feb 2013 08:01:40 -0700 Message-ID: Subject: Re: Networked brokers dropping/suppressing messages From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=20cf303f64eaaeecaa04d4fb7c41 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303f64eaaeecaa04d4fb7c41 Content-Type: text/plain; charset=ISO-8859-1 This one seems curious. Can you post your broker configs and I can try on my side? On Mon, Feb 4, 2013 at 1:35 PM, photonikd wrote: > Hello All, > > I'm currently in the process of configuring 2 ActiveMQ (5.7.0) brokers with > the primary objective to use persistant queues to sync messages from > Datacenter 1, to a broker in Datacenter 2 (and vice versa) via a static > openwire Network Connector. After building the 2 brokers and running some > validation tests, I am experiencing sporadic behavior where some messages > that are sent to the remote broker seem to never make it to their > destination queue. Here is a "visual" representation of the configuration: > > Datacenter 1 Producer --> DC1 Broker: SYNC.OUT (Comp Q) --> DC2.SYNC (Phys > Q)(Statically Included Network Connector)--> Datacenter Broker DC2 --> > DC2.SYNC (Comp Q) --> SYNC.IN(Phys Q) (Consumer Attached to Q) > > As I mentioned perviously, the process is vice versa from DC2 back to DC1 > Datacenter 2 Producer --> DC2 Broker: SYNC.OUT (Comp Q) --> DC1.SYNC (Phys > Q)(Statically Included Network Connector)--> Datacenter Broker DC1 --> > DC1.SYNC (Comp Q) --> SYNC.IN(Phys Q) (Consumer Attached to Q) > > At first I was concerned that the messages were not actually being > transferred at a TCP level from datacenter to datacenter as the message > enqueue/dequeue count on the near end would increment/decrement as > expected. > But, the far end queue would never appear to receive the message and > increment/decrement its queue. After enabling debug logging, I noticed that > when the lost message behavior would occur, I would see this entry in the > far end/receiving broker, indicating that the message did indeed arrive: > > suppressing duplicate message send > [ID:brokerDC2-60716-1359583622675-0:0:1:1:272] with producerSequenceId > [272] > less than last stored: 328 | > org.apache.activemq.broker.ProducerBrokerExchange | ActiveMQ Transport: > tcp:///x.x.x.x:37877@61617 > > While searching out other users experiencing this problem, I discovered and > added the following configuration items to activemq.xml: > (within the network connector configuration) > suppressDuplicateQueueSubscriptions="false" > suppressDuplicateTopicSubscriptions="false" > > (within the KahaDB configuration) > > > Notes > In order to rule out Datacenter to Datacenter latency (the bandwidth > between > these DCs is, let's say, abundant), I built the same environment on 2 > virtual machines, locally and on the same VLAN. Regardless of the > connectivity situation, the problem still existed in either scenario. > > Test Cases > - After adding the above configuration items and restarting both ActiveMQ > instances, the problem would still occur. > - After adding the above configuration items, removing the existing KahaDB > data directory, restarting the AmQ instance and letting the data directory > re-create itself, the problem DID NOT occur again. > - After restarting the brokers again, I was faced with this problem until I > again cleared out the KahaDB directory. > > > So, I'm left with a few unanswered questions: > - Why am I receiving duplicate messages or why does AMQ think this is > happening? > - Did the configuration changes that I made (in conjunction with the Kaha > rebuild) actually resolve the issue, if so, why? > - The Plot Twist! Currently, I am accomplishing message replication with a > 5.3.0 environment without issue. > > Any insight is greatly appreciated. > Thanks! > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Networked-brokers-dropping-suppressing-messages-tp4662747.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --20cf303f64eaaeecaa04d4fb7c41--