Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 66035 invoked from network); 7 Aug 2009 16:42:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 16:42:40 -0000 Received: (qmail 99357 invoked by uid 500); 7 Aug 2009 16:42:47 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 99314 invoked by uid 500); 7 Aug 2009 16:42:47 -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 99304 invoked by uid 99); 7 Aug 2009 16:42:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 16:42:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 16:42:36 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MZSWG-0007KO-4o for users@activemq.apache.org; Fri, 07 Aug 2009 09:42:16 -0700 Message-ID: <24868142.post@talk.nabble.com> Date: Fri, 7 Aug 2009 09:42:16 -0700 (PDT) From: jerdavis To: users@activemq.apache.org Subject: Re: Total Message Order of Queues (not topics) durring edge cases(crashes) In-Reply-To: <3a73c17c0908070340t6ab6d674gb29ed6c87eef40b7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jerdavis@speakeasy.net References: <24705154.post@talk.nabble.com> <24837185.post@talk.nabble.com> <99DC3C9B-89E9-4711-87B0-59F3CAF3712E@gmail.com> <24855824.post@talk.nabble.com> <3a73c17c0908070340t6ab6d674gb29ed6c87eef40b7@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I guess the edge case I'm thinking about is the Plain ol Single Consumer that crashes. If my crashed program quickly restarts, and starts consuming, I bet the broker would think there are two consumers (until TCP timeouts etc) Many thanks to all, I can sleep better now. -JD Gary Tully wrote: > > total ordering is only an issue when there are multiple consumers. > For a single consumer and for exclusive consumers, where there can only be > a > single consumer, ordering 'is' guaranteed. > > 2009/8/6 jerdavis > >> >> Thanks for your answer Rob, this is exactly what I was looking for. :) >> Total Ordering seems like such a fundamental thing for a Persistent >> Queue. >> I'm surprised there hasn't been a solid answer to this question. Is there >> a >> standard way people get around this? >> Would an Exclusive Consumer guarantee Total Order? >> I would think that a new Exclusive consumer wouldn't be able to consume >> messages until the crashed TCP connection/consumer finally closed and >> released the outstanding messages. >> >> Regards, >> -JD >> >> >> >> >> >> >> rajdavies wrote: >> > >> > >> > On 5 Aug 2009, at 23:13, jerdavis wrote: >> > >> >> >> >> No takers? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Total-Message-Order-of-Queues-%28not-topics%29-durring-edge-cases%28crashes%29-tp24705154p24837185.html >> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> >> > >> > >> > Total ordering may be violated for consumer crashes with the default >> > prefetch sizes - see >> > http://activemq.apache.org/what-is-the-prefetch-limit-for.html >> > to reduce this possibility to a single message - set a prefetch size >> > = 0. >> > >> > cheers, >> > >> > Rob >> > >> > Rob Davies >> > I work here: http://fusesource.com >> > My Blog: http://rajdavies.blogspot.com/ >> > I'm writing this: http://www.manning.com/snyder/ >> > >> > >> > >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Total-Message-Order-of-Queues-%28not-topics%29-durring-edge-cases%28crashes%29-tp24705154p24855824.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > > -- > http://blog.garytully.com > > Open Source Integration > http://fusesource.com > > -- View this message in context: http://www.nabble.com/Total-Message-Order-of-Queues-%28not-topics%29-durring-edge-cases%28crashes%29-tp24705154p24868142.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.