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 8980DED5A for ; Sat, 12 Jan 2013 14:56:38 +0000 (UTC) Received: (qmail 16214 invoked by uid 500); 12 Jan 2013 14:56:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16143 invoked by uid 500); 12 Jan 2013 14:56:37 -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 16131 invoked by uid 99); 12 Jan 2013 14:56:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jan 2013 14:56:37 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.210.177 as permitted sender) Received: from [209.85.210.177] (HELO mail-ia0-f177.google.com) (209.85.210.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jan 2013 14:56:31 +0000 Received: by mail-ia0-f177.google.com with SMTP id h8so2422599iaa.36 for ; Sat, 12 Jan 2013 06:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=F2JNKblLRY9FtungxNVLO3Iq46MTB6fjIHnfJutREI0=; b=E5MxUzJtx4YaGSVTYEJpb/kDH6WHCiDDaoYv2wE2zL6x4AQkMDcf0wQpFaLaIdXc0k jZt6v8x+rAesdFM2HowBXABW7TeN5L1+DPsiqIyv0qDDnLuAjSNq/KT6xTPbKMFh/H3D V5DUyt4DM/b/r86neTxMtFP6/GV5NNHWvqVbanWowC7s2yTIBin+q5yfb1fzB2cwZ+HQ QQQfFC2nZSVW7RXL9qAeU9tUbO6qsJ3JFNq61/wpJIaOS4A1BiYhujeJCIZ7UyMVID3M owspfYhjzYE5JY9WIhnkTEZnFNfPZ7XB4Wb+WBOWpUWurBuoxAqnZVsSbNvZQarqibEF DwKA== MIME-Version: 1.0 Received: by 10.50.16.144 with SMTP id g16mr2406907igd.2.1358002570161; Sat, 12 Jan 2013 06:56:10 -0800 (PST) Received: by 10.50.41.100 with HTTP; Sat, 12 Jan 2013 06:56:10 -0800 (PST) In-Reply-To: <1357962185037-4661679.post@n4.nabble.com> References: <1296518752949-2367852.post@n4.nabble.com> <1296518752950-2367853.post@n4.nabble.com> <1296518752935-2367855.post@n4.nabble.com> <1296518752926-3250209.post@n4.nabble.com> <1302591175903-3443852.post@n4.nabble.com> <1302625180388-3445066.post@n4.nabble.com> <1302685229549-3446638.post@n4.nabble.com> <1357962185037-4661679.post@n4.nabble.com> Date: Sat, 12 Jan 2013 07:56:10 -0700 Message-ID: Subject: Re: Stuck messages - Dispatch issues From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=f46d044305cecc6df704d3189c7d X-Virus-Checked: Checked by ClamAV on apache.org --f46d044305cecc6df704d3189c7d Content-Type: text/plain; charset=ISO-8859-1 Looks like your network connectors are in one direction only, ie, node1 --> node2 What this means is messages will only flow across the network FROM node1 TO node2 based on the demand (consumers) on node2. They will not flow the other way unless you set up a bridge in the other direction (node2 --> node1) or use duplex="true" on your existing network connectors. Not sure what you mean when you say restarting the brokers fixes what you were seeing. On Fri, Jan 11, 2013 at 8:43 PM, swplotner wrote: > Hi, > > Using 5.7.0 I find that the problem exists in the following way: > > 2 brokers connected via network. > > Broker A > has consumer connected to a /queue/foo.test > > Broker B > has a producer connected to /queue/foo.test > > the producer is producing message for /queue/foo.test and the consumer will > receive them just fine. The producer is configured to stuff messages into > the queue one after the other, the consumer on purpose consumes messages > slowly. > > Once we have several hundred messages in /queue/foo.test we abort the > producer and consumer. > > Looking at queue sizes on both brokers, broker A has a large number of > messages and broker B has some number of messages or none. > > Take the consumer that was previously talking via broker A and connect him > to broker B. That consumer will now only see the messages that are in > broker > B and will NOT receive ANY of the messages stuck in broker A. > > The only way I can get out of this problem is to restart both brokers and > all messages are then process correctly. > > I have spent quite a bit of time on this problem and if there is only one > broker this is not a problem - the moment you have a network of 2 brokers > this problem exists. > > Here are my network connectors, one for topics and one for queues: > > > uri="static:(ssl://activemq-node2.amherst.edu:61615)" > networkTTL="3" > dynamicOnly="true" > prefetchSize="1" > duplex="false" > userName="${netlink.username}" > password="${netlink.password}" > conduitSubscriptions="false" > > > > > > > > uri="static:(ssl://activemq-node2.amherst.edu:61615)" > networkTTL="3" > dynamicOnly="true" > prefetchSize="1" > duplex="false" > userName="${netlink.username}" > password="${netlink.password}" > conduitSubscriptions="false" > > > > > > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Stuck-messages-Dispatch-issues-tp2367852p4661679.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --f46d044305cecc6df704d3189c7d--